This commit is contained in:
aozhiwei 2021-12-07 15:47:01 +08:00
parent 87a6480686
commit c32c4a2793

View File

@ -109,9 +109,9 @@ class UserController extends BaseAuthedController {
}
}
}
$headId = 0;
$headFrame = 0;
$heroId = 0;
$headId = !empty($headList) ? $headList[rand() % count($headList)] : 0;
$headFrame = !empty($headFrameList) ? $headFrameList[rand() % count($headFrameList)] : 0;
$heroId = !empty($heroList) ? $heroList[rand() % count($heroList)] : 0;
SqlHelper::upsert
($this->_getSelfMysql(),
't_user',
@ -141,6 +141,7 @@ class UserController extends BaseAuthedController {
'modifytime' => $this->_getNowTime(),
)
);
$this->_addItems($addItems);
}
public function active()