发布v2.5.9版本

This commit is contained in:
雨中磐石
2023-07-12 16:27:03 +08:00
parent 17e1d6ed22
commit 983cd0d3ea
29 changed files with 551 additions and 118 deletions

View File

@@ -123,12 +123,14 @@ class indexClassAction extends apiAction
$hwtoken = $this->get('hwtoken');
$pushtoken = $this->get('pushtoken');
$appver = $this->get('appversion');
$web = $this->get('web');
$ispush = (int)$this->get('ispush','0');
if($appver)$pushtoken.='_'.$appver.'';
$uarr['ispush'] = $ispush;
$uarr['pushtoken'] = $pushtoken;
$uarr['moddt'] = $this->now;
if(!isempt($hwtoken))$uarr['ip'] = $hwtoken;
if(!isempt($web))$uarr['web'] = $web;
m('login')->update($uarr, "`token`='$this->admintoken'");
if($ispush==1)m('reim')->sendpush($this->adminid, 'all', array(
'type' => 'onoffline',