Commit b60b6c0a by 朱继来

Merge branch 'master' into development

parents d6429427 4cd5e5d4
Showing with 6 additions and 6 deletions
...@@ -209,13 +209,11 @@ Class AddOrderController extends Controller ...@@ -209,13 +209,11 @@ Class AddOrderController extends Controller
$address = DB::connection('order')->table('lie_user_address')->where(['user_id' => $info['internal_uid'], 'is_default' => 1])->first(); $address = DB::connection('order')->table('lie_user_address')->where(['user_id' => $info['internal_uid'], 'is_default' => 1])->first();
$address->province_val = $this->getAddress($address->province); $address->province_val = $this->getAddress($address->province);
$address->city_val = $this->getAddress($address->city); $address->city_val = $this->getAddress($address->city);
$address->district_val = $this->getAddress($address->district); $address->district_val = $this->getAddress($address->district);
$info['address'] = $address; $info['address'] = $address;
$info['sale_id'] = $request->user->userId;
$sale_id = $request->user->userId;
$info['sale_id'] = $sale_id;
// 当前登录用户名称 // 当前登录用户名称
$userInfo = DB::table('user_info')->where('userId', $sale_id)->select('name')->first(); $userInfo = DB::table('user_info')->where('userId', $sale_id)->select('name')->first();
...@@ -228,6 +226,8 @@ Class AddOrderController extends Controller ...@@ -228,6 +226,8 @@ Class AddOrderController extends Controller
$user = DB::connection('order')->table('lie_user_main')->where('user_id', $intracode->user_id)->select('mobile')->first(); $user = DB::connection('order')->table('lie_user_main')->where('user_id', $intracode->user_id)->select('mobile')->first();
$info['mobile'] = $user ? $user->mobile : ''; $info['mobile'] = $user ? $user->mobile : '';
} else {
$info['mobile'] = '';
} }
return view('addOffline', $info); return view('addOffline', $info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment