perf: 记录版本信息
This commit is contained in:
@@ -1152,6 +1152,7 @@ class UsersController extends AbstractController
|
||||
* - remove: 删除
|
||||
* @apiParam {String} alias 别名
|
||||
* @apiParam {String} [userAgent] 浏览器信息
|
||||
* @apiParam {String} [osVersion] 应用的版本号
|
||||
* @apiParam {String} [deviceModel] 设备型号
|
||||
* @apiParam {String} [isNotified] 是否有通知权限(0不通知、1通知)
|
||||
*
|
||||
@@ -1190,6 +1191,7 @@ class UsersController extends AbstractController
|
||||
if ($row->exists()) {
|
||||
$row->update([
|
||||
'ua' => $data['userAgent'],
|
||||
'version' => $data['osVersion'],
|
||||
'device' => $data['deviceModel'],
|
||||
'is_notified' => $isNotified,
|
||||
'updated_at' => Carbon::now()
|
||||
@@ -1198,6 +1200,7 @@ class UsersController extends AbstractController
|
||||
}
|
||||
$row = UmengAlias::createInstance(array_merge($inArray, [
|
||||
'ua' => $data['userAgent'],
|
||||
'version' => $data['osVersion'],
|
||||
'device' => $data['deviceModel'],
|
||||
'is_notified' => $isNotified,
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user