Merge branch 'master' of git.excellentkk.cn:mkm/shop-php

This commit is contained in:
mkm 2023-06-20 17:22:25 +08:00
commit fa730cf99f

View File

@ -135,8 +135,8 @@ class StoreOrderStatusRepository extends BaseRepository
{
$request = request();
$data['user_type'] = $request->userType();
$data['uid'] = $request->adminId();
$data['nickname'] = $request->adminInfo()->real_name;
$data['uid'] = $data['user_type'] == 1 ? $request->uid() : $request->adminId();
$data['nickname'] = $data['user_type'] == 1 ? $request->userInfo()->real_name : $request->adminInfo()->real_name;
return $this->dao->create($data);
}