Commit 62e0568c by 朱继来

调整操作客户

parent 98beb671
Showing with 3 additions and 4 deletions
...@@ -107,12 +107,11 @@ function getOperatorName($uid, $type) ...@@ -107,12 +107,11 @@ function getOperatorName($uid, $type)
$name = ''; $name = '';
if ($type == 1) { if ($type == 1) {
$user = DB::connection('order')->table('lie_user_main')->where('user_id', $uid)->select('user_name')->first(); // $user = DB::connection('order')->table('lie_user_main')->where('user_id', $uid)->select('user_name')->first();
// $name = !empty($user->user_name) ? $user->user_name : '客户';
$name = !empty($user->user_name) ? $user->user_name : '客户'; $name = '客户';
} else if ($type == 2) { } else if ($type == 2) {
$user = DB::table('user_info')->where('userId', $uid)->select('name')->first(); $user = DB::table('user_info')->where('userId', $uid)->select('name')->first();
$name = isset($user->name) ? $user->name : '未知'; $name = isset($user->name) ? $user->name : '未知';
} else if ($type == 3) { } else if ($type == 3) {
$name = '系统定时任务'; $name = '系统定时任务';
......
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