mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-29 10:31:49 +08:00
优化 安装包生成
This commit is contained in:
23
Application/Admin/Model/ConfigModel.class.php
Executable file
23
Application/Admin/Model/ConfigModel.class.php
Executable file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Model;
|
||||
use Think\Model;
|
||||
|
||||
/**
|
||||
* 配置模型
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
class ConfigModel extends CommonModel
|
||||
{
|
||||
// 数据自动校验
|
||||
protected $_validate = array(
|
||||
// 添加,编辑
|
||||
array('mobile', 'CheckMobile', '{%common_mobile_format_error}', 2, 'function', 3),
|
||||
array('gender', array(0,1,2), '{%common_gender_tips}', 1, 'in', 3),
|
||||
array('role_id', 'IsExistRole', '{%login_role_id_error}', 1, 'callback', 3),
|
||||
);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user