作者 开飞机的舒克

后台功能优化

... ... @@ -4,6 +4,7 @@ namespace app\admin\controller;
use app\common\controller\Backend;
use app\common\controller\Resource;
use app\common\library\Auth;
use Exception;
use think\Db;
use think\db\exception\DataNotFoundException;
... ...
... ... @@ -11,7 +11,7 @@ class Study extends Validate
*/
protected $rule = [
'name'=>'require|max:10',
'phone'=>['require','regex:/^[1](([3][0-9])|([4][5-9])|([5][0-3,5-9])|([6][5,6])|([7][0-8])|([8][0-9])|([9][1,8,9]))[0-9]{8}$/']
'phone'=>['regex:/^[1](([3][0-9])|([4][5-9])|([5][0-3,5-9])|([6][5,6])|([7][0-8])|([8][0-9])|([9][1,8,9]))[0-9]{8}$/']
];
/**
... ...