|
@@ -703,20 +703,7 @@ class GlobalLogicController extends BaseLogicController
|
|
|
$platformData[$pitem]['today'] = (Redis::get($dkey)?:0)/100;
|
|
$platformData[$pitem]['today'] = (Redis::get($dkey)?:0)/100;
|
|
|
}
|
|
}
|
|
|
// 手机型号
|
|
// 手机型号
|
|
|
- $data['mobileBand'] = '';
|
|
|
|
|
- $res = Redis::get('user_ua_' . ($user->UserID ?? ''));
|
|
|
|
|
- if ($res) {
|
|
|
|
|
- $ua = $res ?? '';
|
|
|
|
|
- if (stripos($ua, 'iPhone') !== false) {
|
|
|
|
|
- $data['mobileBand'] = 'iPhone';
|
|
|
|
|
- }
|
|
|
|
|
- if (preg_match('/Android\s[\d\.]+;\s([^)]+)/i', $ua, $match)) {
|
|
|
|
|
- $data['mobileBand'] = 'Android' . trim($match[1]);
|
|
|
|
|
- }
|
|
|
|
|
- if (stripos($ua, 'Windows') !== false) {
|
|
|
|
|
- $data['mobileBand'] = 'PC';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ $data['mobileBand'] = $userInfo->LastLogonMobile;
|
|
|
// 退款信息
|
|
// 退款信息
|
|
|
$data['refund_flag'] = DB::table('agent.dbo.order')
|
|
$data['refund_flag'] = DB::table('agent.dbo.order')
|
|
|
->where(['user_id' => $UserID, 'pay_status' => 9])
|
|
->where(['user_id' => $UserID, 'pay_status' => 9])
|