user change
This commit is contained in:
parent
e1a17a727b
commit
efd54d59e8
@ -180,7 +180,10 @@ class LogisticsLogic extends BaseLogic
|
||||
$courierInfo = Courier::alias('u')
|
||||
->field('u.id,u.nickname,a.phone')
|
||||
->leftjoin('la_admin a', 'u.admin_id = a.id')
|
||||
->where('u.id', $courier)->find()->toArray();
|
||||
->where('u.id', $courier)->find();
|
||||
|
||||
//获取下单用户信息
|
||||
$orderUser = Courier::field('nickname,mobile')->where('id', $order['uid'])->find();
|
||||
//写入数据
|
||||
Logistics::startTrans();
|
||||
try {
|
||||
@ -205,8 +208,8 @@ class LogisticsLogic extends BaseLogic
|
||||
LogisticsRecord::create([
|
||||
'lst_id' => $lst->id,
|
||||
'type' => 1,
|
||||
'user_name' => $order['real_name'],
|
||||
'user_phone' => $order['user_phone'],
|
||||
'user_name' => $orderUser['nickname'],
|
||||
'user_phone' => $orderUser['mobile'],
|
||||
'content' => '用户提交订单',
|
||||
'create_time' => time(),
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user