|
|
@@ -637,7 +637,6 @@ class OrderController extends BaseController
|
|
|
$post['customName'] = $customName;
|
|
|
$post['customNamePy'] = $custom['py'] ?? '';
|
|
|
$post['customAvatar'] = $custom['shortSmallAvatar'] ?? '';
|
|
|
- $post['shopAdminId'] = $this->shopAdminId;
|
|
|
$post['province'] = $custom['province'] ?? '';
|
|
|
$post['city'] = $custom['city'] ?? '';
|
|
|
$post['dist'] = $custom['dist'] ?? '';
|
|
|
@@ -648,7 +647,8 @@ class OrderController extends BaseController
|
|
|
$post['long'] = $custom['long'] ?? '';
|
|
|
$post['lat'] = $custom['lat'] ?? '';
|
|
|
$shopAdmin = $this->shopAdmin->attributes;
|
|
|
- $post['shopAdminName'] = $shopAdmin['name'] ?? '';
|
|
|
+ $post['shopAdminId'] = isset($post['shopAdminId']) && !empty($post['shopAdminId']) ? $post['shopAdminId'] : $this->shopAdminId;
|
|
|
+ $post['shopAdminName'] = isset($post['shopAdminName']) && !empty($post['shopAdminName']) ? $post['shopAdminName'] : $shopAdmin['name'];
|
|
|
$post['sjId'] = $this->sjId;
|
|
|
$post['shopId'] = $shopId;
|
|
|
$post['mainId'] = $this->mainId;
|
|
|
@@ -904,7 +904,7 @@ class OrderController extends BaseController
|
|
|
$info['hasCloudPrint'] = $hasCloudPrint;
|
|
|
|
|
|
//店长信息
|
|
|
- $mainId = $info['mainId']??0;
|
|
|
+ $mainId = $info['mainId'] ?? 0;
|
|
|
$superInfo = ShopAdminClass::getManager($mainId);
|
|
|
$info['customSuper'] = $superInfo;
|
|
|
|