|
|
@@ -722,9 +722,17 @@ class OrderController extends BaseController
|
|
|
$post['showAddress'] = $custom['showAddress'] ?? '';
|
|
|
$post['long'] = $custom['long'] ?? '';
|
|
|
$post['lat'] = $custom['lat'] ?? '';
|
|
|
- $shopAdmin = $this->shopAdmin->attributes;
|
|
|
- $post['shopAdminId'] = isset($post['shopAdminId']) && !empty($post['shopAdminId']) ? $post['shopAdminId'] : $this->shopAdminId;
|
|
|
- $post['shopAdminName'] = isset($post['shopAdminName']) && !empty($post['shopAdminName']) ? $post['shopAdminName'] : $shopAdmin['name'];
|
|
|
+ $shopAdmin = $this->shopAdmin;
|
|
|
+ $shopAdminId = $this->shopAdminId;
|
|
|
+ $shopAdminName = $shopAdmin->name ?? '';
|
|
|
+ $post['shopAdminId'] = $shopAdminId;
|
|
|
+ $post['shopAdminName'] = $shopAdminName;
|
|
|
+ //开单人和收款人默认情况是同个人
|
|
|
+ if (isset($post['shopAdminId']) == false || empty($post['shopAdminId'])) {
|
|
|
+ $post['getStaffId'] = $shopAdminId;
|
|
|
+ $post['getStaffName'] = $shopAdminName;
|
|
|
+ }
|
|
|
+
|
|
|
$post['sjId'] = $this->sjId;
|
|
|
$post['shopId'] = $shopId;
|
|
|
$post['mainId'] = $this->mainId;
|
|
|
@@ -739,7 +747,6 @@ class OrderController extends BaseController
|
|
|
$post['debt'] = OrderClass::DEBT_YES;
|
|
|
}
|
|
|
|
|
|
- $shopAdmin = $this->shopAdmin;
|
|
|
if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
if ($hasPay == dict::getDict('hasPay', 'payed')) {
|
|
|
util::fail('没有权限');
|