diff --git a/app/api/controller/LogisticsController.php b/app/api/controller/LogisticsController.php index cc47f860..df90773c 100755 --- a/app/api/controller/LogisticsController.php +++ b/app/api/controller/LogisticsController.php @@ -265,12 +265,11 @@ class LogisticsController extends BaseApiController //获取配送员信息 $courier = Db::connect('mysql3')->name('la_user')->field('real_name,mobile')->where('id', $user_id)->find(); if (!$courier) return $this->fail('配送人员信息不存在'); - //dump($courier); //设置记录信息 $record = [ 'lst_id' => $logistics['id'], 'type' => 2, - 'user_name' => $courier['real_name'], + 'user_name' => $courier['real_name']? $courier['real_name'] : $courier['nickname'], 'user_phone' => $courier['mobile'], 'content' => '已完成配送', 'create_time' => time(),