多商户源代码问题:\app\common\repositories\store\order\StoreOrderStatusRepository.php
代码第134行createAdminLog方法中调用了
$request->adminId()和
$request->adminInfo()
但是在移动端商家操作订单,记录日志时,$request里是没有这两个方法的,导致报错
建议记录日志时分渠道,或者代码
$data['uid'] = $request->adminId();
$data['nickname'] = $request->adminInfo()->real_name;
改为
try {
$data['uid'] = $request->adminId();
$data['nickname'] = $request->adminInfo()->real_name;
} catch (\Exception $e) {
$data['uid'] = $request->uid();
$data['nickname'] = $request->userInfo()->nickname;
}
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}