user change

This commit is contained in:
luofei 2023-08-11 11:45:19 +08:00
parent e1a17a727b
commit efd54d59e8

View File

@ -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(),
]);