作者 开飞机的舒克

后台功能优化

@@ -4,6 +4,7 @@ namespace app\admin\controller; @@ -4,6 +4,7 @@ namespace app\admin\controller;
4 4
5 use app\common\controller\Backend; 5 use app\common\controller\Backend;
6 use app\common\controller\Resource; 6 use app\common\controller\Resource;
  7 +use app\common\library\Auth;
7 use Exception; 8 use Exception;
8 use think\Db; 9 use think\Db;
9 use think\db\exception\DataNotFoundException; 10 use think\db\exception\DataNotFoundException;
@@ -11,7 +11,7 @@ class Study extends Validate @@ -11,7 +11,7 @@ class Study extends Validate
11 */ 11 */
12 protected $rule = [ 12 protected $rule = [
13 'name'=>'require|max:10', 13 'name'=>'require|max:10',
14 - '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}$/'] 14 + '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}$/']
15 15
16 ]; 16 ];
17 /** 17 /**