|
|
@@ -1112,18 +1112,18 @@ class OrderController extends BaseController
|
|
|
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
//南粤选了开单,也只能变成本人开单
|
|
|
- if($this->mainId == 22388){
|
|
|
- $post['shopAdminName'] = $shopAdminName;
|
|
|
- $post['shopAdminId'] = $shopAdminId;
|
|
|
- $post['getStaffId'] = $shopAdminId;
|
|
|
- $post['getStaffName'] = $shopAdminName;
|
|
|
- }
|
|
|
- }else{
|
|
|
- if($this->mainId == 644){
|
|
|
- $post['shopAdminName'] = $shopAdminName;
|
|
|
- $post['shopAdminId'] = $shopAdminId;
|
|
|
- $post['getStaffId'] = $shopAdminId;
|
|
|
- $post['getStaffName'] = $shopAdminName;
|
|
|
+ if ($this->mainId == 22388) {
|
|
|
+ $post['shopAdminName'] = $shopAdmin->name;
|
|
|
+ $post['shopAdminId'] = $shopAdmin->id;
|
|
|
+ $post['getStaffId'] = $shopAdmin->id;
|
|
|
+ $post['getStaffName'] = $shopAdmin->name;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if ($this->mainId == 644) {
|
|
|
+ $post['shopAdminName'] = $shopAdmin->name;
|
|
|
+ $post['shopAdminId'] = $shopAdmin->id;
|
|
|
+ $post['getStaffId'] = $shopAdmin->id;
|
|
|
+ $post['getStaffName'] = $shopAdmin->name;
|
|
|
}
|
|
|
}
|
|
|
|