|
|
@@ -44,6 +44,11 @@ class CustomController extends BaseController
|
|
|
if ($custom->ownMainId != $this->mainId) {
|
|
|
util::fail('不是你的客户,无法充值');
|
|
|
}
|
|
|
+ $customShopId = $custom->shopId ?? 0;
|
|
|
+ $shop = $this->shop;
|
|
|
+ if ($customShopId == $shop->lsShopId) {
|
|
|
+ util::fail('不能给自己的店充值');
|
|
|
+ }
|
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|