问题说明:总平台商品订单详情用户手机号权限问题
修改文件:application\admin\controller\order\StoreOrder
修改方法:order_info()
public function order_info($oid = '')
{
if (!$oid || !($orderInfo = StoreOrderModel::get($oid))) return $this->failed('订单不存在!');
$userInfo = User::getAllUserinfo($orderInfo['uid']);
if (!$userInfo) return $this->failed('用户不存在!');
if ($userInfo && $userInfo['spread_uid']) {
$spread = User::where('uid', $userInfo['spread_uid'])->value('nickname');
} else {
$spread = '';
}
$isPhoneMenu = is_phone_menu();
if (isset($orderInfo['user_phone']) && $orderInfo['user_phone'] != '' && !$isPhoneMenu) {
$orderInfo['user_phone'] = substr_replace($orderInfo['user_phone'], '****', 3, 4);
}
$gold_name = SystemConfigService::get('gold_name');
$this->assign(compact('orderInfo', 'userInfo', 'spread', 'gold_name'));
return $this->fetch();
}