|
|
@@ -1078,6 +1078,7 @@ class OrderController extends BaseController
|
|
|
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
if($this->mainId == 1082){
|
|
|
+ //泉城鲜花批发的出车,只能开收现金方式,多处要修改,关键词qc_cash
|
|
|
if($hasPay != 0){
|
|
|
util::fail('只能使用扫码付款');
|
|
|
}
|
|
|
@@ -1085,7 +1086,7 @@ class OrderController extends BaseController
|
|
|
}else{
|
|
|
if($this->mainId == 644){
|
|
|
if($hasPay != 0){
|
|
|
- util::fail('只能使用扫码付款');
|
|
|
+ //util::fail('只能使用扫码付款');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1463,6 +1464,21 @@ class OrderController extends BaseController
|
|
|
}
|
|
|
Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 4, 'has']);
|
|
|
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ if($this->mainId == 1082){
|
|
|
+ //泉城鲜花批发的出车,只能开收现金方式,多处要修改,关键词qc_cash
|
|
|
+ if($hasPay != 0){
|
|
|
+ util::fail('只能使用扫码付款');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if($this->mainId == 644){
|
|
|
+ if($hasPay != 0){
|
|
|
+ util::fail('只能使用扫码付款');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$order = OrderClass::getById($id, true);
|
|
|
OrderClass::valid($order, $this->shopId);
|
|
|
$payWay = dict::getDict('payWay', 'debtPay');
|