webmain/task/api/loginAction.php
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class loginClassAction extends apiAction
{
public function checkAction()
{
$adminuser = str_replace(' ','',$this->rock->jm->base64decode($this->post('user')));
$adminpass = $this->rock->jm->base64decode($this->post('pass'));
$arr = m('login')->start($adminuser, $adminpass);
if(is_array($arr)){
if(isset($arr['mobile'])){
$this->showreturn($arr, $arr['msg'], 205);
}
$arrs = array(
'uid' => $arr['uid'],
'name' => $arr['name'],
'user' => $arr['user'],
'ranking' => $arr['ranking'],
'deptname' => $arr['deptname'],
'deptallname' => $arr['deptallname'],
'face' => $arr['face'],
'apptx' => $arr['apptx'],
'loginyzm' => (int)getconfig('loginyzm','0'),
'token' => $arr['token'],
'iskq' => (int)m('userinfo')->getmou('iskq', $arr['uid']), //判断是否需要考勤
'title' => getconfig('apptitle'),
'weblogo' => getconfig('weblogo')
);
$uid = $arr['uid'];
$name = $arr['name'];
$user = $arr['user'];
$token = $arr['token'];
m('login')->setsession($uid, $name, $token, $user);
$this->showreturn($arrs);
}else{
$this->showreturn('', $arr, 201);
}
}
public function loginexitAction()
{
m('login')->exitlogin('', $this->token);
$this->showreturn('');
}
/**
* app登录页面初始化
*/
public function appinitAction()
{
$arrs = array(
'loginyzm' => (int)getconfig('loginyzm','0'),
'title' => getconfig('apptitle'),
'apptheme' => getconfig('apptheme'),
'titleall' => TITLE,
'regtype' => getconfig('regtype','0'), //是否可注册1,可注册
);
后面还有 286 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
