You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
811 B
PHTML
36 lines
811 B
PHTML
5 years ago
|
<?php
|
||
|
/**
|
||
|
* 逻辑层model
|
||
|
* Created by PhpStorm.
|
||
|
* User: xmy
|
||
|
* Date: 2017/3/23
|
||
|
* Time: 14:57
|
||
|
*/
|
||
|
|
||
|
namespace App\Logic;
|
||
|
|
||
|
use Think\Model;
|
||
|
|
||
|
class BaseLogic extends Model{
|
||
|
|
||
|
const EMPTY_DATA = -100; //数据为空
|
||
|
const SIGN_ERROR = -99; //验签失败
|
||
|
|
||
|
const USER_NOT_EXIST = -1000; //用户不存在
|
||
|
const USER_FORBIDDEN = -1001; //被禁用
|
||
|
const USER_PWD_ERROR = -10021; //密码错误
|
||
|
const UNKNOWN_ERROR = -1100; //未知错误
|
||
|
|
||
|
const CODE_TIMEOUT = -98; //验证码超时
|
||
|
const CODE_ERROR = -97; //验证码错误
|
||
|
const CODE_NOTHING = -99; //验证码不存在
|
||
|
const RETURN_SUCCESS = 1;
|
||
|
const RETURN_FALSE = 2;
|
||
|
|
||
|
|
||
|
protected function _initialize()
|
||
|
{
|
||
|
$this->tablePrefix = "tab_";
|
||
|
C(api('Config/lists'));//加载配置变量
|
||
|
}
|
||
|
}
|