|
|
@@ -61,6 +61,17 @@ class OrderController extends BaseController
|
|
|
$post['userId'] = $this->userId ?? 0;
|
|
|
|
|
|
|
|
|
+ $mainId = $this->mainId;
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ if($mainId == 40057){
|
|
|
+ util::fail('请在花掌柜端下单');
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if($mainId == 644){
|
|
|
+ util::fail('请在花掌柜端下单');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$custom = CustomClass::getByCondition(['shopId' => $this->shopId, 'userId' => $this->userId], true);
|
|
|
$customId = $custom->id ?? 0;
|
|
|
if (!empty($custom)) {
|