|
|
@@ -384,9 +384,15 @@ class OrderController extends BaseController
|
|
|
|
|
|
$post['shopAdminName'] = $this->shopAdmin->name ?? '';
|
|
|
$groupId = isset($post['groupId']) && !empty($post['groupId']) ? $post['groupId'] : 0;
|
|
|
- //1 门店(收银台开单)
|
|
|
+
|
|
|
$post['fromType'] = $post['fromType'] ?? 1;
|
|
|
- //客户
|
|
|
+
|
|
|
+ if ($post['fromType'] == dict::getDict('fromType', 'friend')) {
|
|
|
+ if (isset($post['bookName']) == false || empty($post['bookName'])) {
|
|
|
+ util::fail('请填写订花人名称,没有请填【无】');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$customId = isset($post['customId']) && $post['customId'] > 0 ? $post['customId'] : 0;
|
|
|
if (empty($customId)) {
|
|
|
$customId = $this->shop->defaultCustomId ?? 0;
|