|
|
@@ -628,6 +628,9 @@ class OrderController extends BaseController
|
|
|
util::fail('请选客户哦');
|
|
|
}
|
|
|
CustomClass::valid($custom, $this->shopId);
|
|
|
+ if (!empty($custom->mainId) && $custom->mainId == $custom->ownMainId) {
|
|
|
+ util::fail('不能给自己的零售店开单');
|
|
|
+ }
|
|
|
$post['ghsId'] = $custom['ghsId'] ?? 0;
|
|
|
$post['customMobile'] = $custom['mobile'] ?? '';
|
|
|
$customName = $custom['name'] ?? '';
|