发布v2.6.8版本
This commit is contained in:
@@ -21,7 +21,7 @@ class openapiAction extends ActionNot
|
||||
$this->display= false;
|
||||
$openkey = $this->post('openkey');
|
||||
$this->openkey = getconfig('openkey');
|
||||
if($this->keycheck && HOST != '127.0.0.1' && !contain(HOST,'192.168') && $this->openkey != ''){
|
||||
if($this->keycheck && $this->openkey != ''){
|
||||
if($openkey != md5($this->openkey))$this->showreturn('', 'openkey not access', 201);
|
||||
}
|
||||
$this->getpostdata();
|
||||
|
||||
@@ -15,7 +15,7 @@ class openbaseClassAction extends openapiAction
|
||||
$arr = $this->getpostarr();
|
||||
if(!$arr)return returnerror('not data');
|
||||
|
||||
$modenum = $arr['basemodenum'];
|
||||
$modenum = $this->rock->xssrepstr($arr['basemodenum']);
|
||||
$adminid = $this->rock->xssrepstr($arr['baseoptid']); //提交的用户
|
||||
if(isempt($modenum))return returnerror('modenum is empty');
|
||||
$uid = $this->getuserid($adminid);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 群英考勤机
|
||||
* 请求地址如:http://127.0.0.1/api.php?m=opendkq&openkey=key
|
||||
* 请求地址如:http://127.0.0.1/api.php?m=openkqj&openkey=key
|
||||
*/
|
||||
class openkqjClassAction extends openapiAction
|
||||
{
|
||||
@@ -31,8 +31,10 @@ class openkqjClassAction extends openapiAction
|
||||
$data = array();
|
||||
$num = $this->get('sn'); //设备号
|
||||
if(!$num)return 'notdata';
|
||||
if(c('check')->onlynoen($num))return 'error:sn0';
|
||||
$dbs = m('kqjsn');
|
||||
$snid = (int)$dbs->getmou('id',"`num`='$num'");
|
||||
if($snid==0)return 'error:sn1'; //20250307新增没有设备就不执行了
|
||||
if($snid==0)$snid = $dbs->insert(array(
|
||||
'num' => $num,
|
||||
'optdt' => $this->rock->now,
|
||||
|
||||
@@ -17,8 +17,10 @@ class openssoClassAction extends openapiAction
|
||||
$lurl = urldecode($this->get('backurl')); //登录成功跳转地址urlencode
|
||||
if(isempt($ssotoken))return '没有参数ssotoken';
|
||||
|
||||
$checkurls = $this->get('checkurl');
|
||||
$checkurl = getconfig('sso_checkurl'); //验证地址
|
||||
$ssokey = getconfig('sso_key'); //验证key
|
||||
if($checkurls)$checkurl = c('rockwxqy')->geturlstr($checkurls,'','main');
|
||||
|
||||
if(isempt($checkurl))return '没有配置验证地址';
|
||||
$jg = contain($checkurl,'?')?'&':'?';
|
||||
|
||||
Reference in New Issue
Block a user