作者 李忠强

更新

@@ -11,7 +11,7 @@ use app\common\controller\Api; @@ -11,7 +11,7 @@ use app\common\controller\Api;
11 */ 11 */
12 class Cart extends Api 12 class Cart extends Api
13 { 13 {
14 - protected $noNeedLogin = ['*']; 14 +// protected $noNeedLogin = ['*'];
15 protected $noNeedRight = ['*']; 15 protected $noNeedRight = ['*'];
16 16
17 /** 17 /**
@@ -17,7 +17,7 @@ use think\Db; @@ -17,7 +17,7 @@ use think\Db;
17 */ 17 */
18 class Classification extends Api 18 class Classification extends Api
19 { 19 {
20 - protected $noNeedLogin = ['*']; 20 +// protected $noNeedLogin = ['*'];
21 protected $noNeedRight = ['*']; 21 protected $noNeedRight = ['*'];
22 22
23 /** 23 /**
@@ -20,6 +20,7 @@ class Common extends Api @@ -20,6 +20,7 @@ class Common extends Api
20 protected $noNeedRight = '*'; 20 protected $noNeedRight = '*';
21 21
22 /** 22 /**
  23 + * @ApiInternal
23 * 加载初始化 24 * 加载初始化
24 * 25 *
25 * @param string $version 版本号 26 * @param string $version 版本号
@@ -5,6 +5,7 @@ namespace app\api\controller; @@ -5,6 +5,7 @@ namespace app\api\controller;
5 use app\common\controller\Api; 5 use app\common\controller\Api;
6 6
7 /** 7 /**
  8 + * @ApiInternal
8 * 示例接口 9 * 示例接口
9 */ 10 */
10 class Demo extends Api 11 class Demo extends Api
@@ -7,6 +7,7 @@ use app\common\library\Ems as Emslib; @@ -7,6 +7,7 @@ use app\common\library\Ems as Emslib;
7 use app\common\model\User; 7 use app\common\model\User;
8 8
9 /** 9 /**
  10 + * @ApiInternal
10 * 邮箱验证码接口 11 * 邮箱验证码接口
11 */ 12 */
12 class Ems extends Api 13 class Ems extends Api
@@ -16,7 +16,7 @@ use think\Db; @@ -16,7 +16,7 @@ use think\Db;
16 class Goods extends Api 16 class Goods extends Api
17 { 17 {
18 protected $noNeedRight = ['*']; 18 protected $noNeedRight = ['*'];
19 - protected $noNeedLogin = ['*']; 19 +// protected $noNeedLogin = ['*'];
20 20
21 21
22 /** 22 /**
@@ -14,7 +14,7 @@ use think\Db; @@ -14,7 +14,7 @@ use think\Db;
14 */ 14 */
15 class Index extends Api 15 class Index extends Api
16 { 16 {
17 - protected $noNeedLogin = ['*']; 17 +// protected $noNeedLogin = ['*'];
18 protected $noNeedRight = ['*']; 18 protected $noNeedRight = ['*'];
19 19
20 /** 20 /**
@@ -17,7 +17,7 @@ use think\exception\PDOException; @@ -17,7 +17,7 @@ use think\exception\PDOException;
17 class Order extends Api 17 class Order extends Api
18 { 18 {
19 protected $noNeedLogin = ['*']; 19 protected $noNeedLogin = ['*'];
20 - protected $noNeedRight = ['*']; 20 +// protected $noNeedRight = ['*'];
21 21
22 /** 22 /**
23 * @ApiTitle (订单列表) 23 * @ApiTitle (订单列表)
@@ -10,7 +10,7 @@ use app\common\controller\Api; @@ -10,7 +10,7 @@ use app\common\controller\Api;
10 class Rider extends Api 10 class Rider extends Api
11 { 11 {
12 protected $noNeedRight = ['*']; 12 protected $noNeedRight = ['*'];
13 - protected $noNeedLogin = ['*']; 13 +// protected $noNeedLogin = ['*'];
14 14
15 /** 15 /**
16 * @ApiTitle (骑手订单页) 16 * @ApiTitle (骑手订单页)
@@ -8,6 +8,7 @@ use app\common\model\User; @@ -8,6 +8,7 @@ use app\common\model\User;
8 use think\Hook; 8 use think\Hook;
9 9
10 /** 10 /**
  11 + * @ApiInternal
11 * 手机短信接口 12 * 手机短信接口
12 */ 13 */
13 class Sms extends Api 14 class Sms extends Api
@@ -6,6 +6,7 @@ use app\common\controller\Api; @@ -6,6 +6,7 @@ use app\common\controller\Api;
6 use fast\Random; 6 use fast\Random;
7 7
8 /** 8 /**
  9 + * @ApiInternal
9 * Token接口 10 * Token接口
10 */ 11 */
11 class Token extends Api 12 class Token extends Api
@@ -16,8 +16,8 @@ use think\Db; @@ -16,8 +16,8 @@ use think\Db;
16 */ 16 */
17 class User extends Api 17 class User extends Api
18 { 18 {
19 - protected $noNeedLogin = ['*'];  
20 -// protected $noNeedLogin = ['third']; 19 +// protected $noNeedLogin = ['*'];
  20 + protected $noNeedLogin = ['third'];
21 protected $noNeedRight = '*'; 21 protected $noNeedRight = '*';
22 22
23 public function _initialize() 23 public function _initialize()
@@ -6,6 +6,7 @@ use app\common\controller\Api; @@ -6,6 +6,7 @@ use app\common\controller\Api;
6 use app\common\model\User; 6 use app\common\model\User;
7 7
8 /** 8 /**
  9 + * @ApiInternal
9 * 验证接口 10 * 验证接口
10 */ 11 */
11 class Validate extends Api 12 class Validate extends Api
@@ -15,18 +15,18 @@ return array ( @@ -15,18 +15,18 @@ return array (
15 'fixedpage' => 'dashboard', 15 'fixedpage' => 'dashboard',
16 'categorytype' => 16 'categorytype' =>
17 array ( 17 array (
18 - 'default' => 'Default',  
19 - 'page' => 'Page',  
20 - 'article' => 'Article', 18 + 'default' => '默认',
  19 + 'page' => '单页',
  20 + 'article' => '文章',
21 'test' => 'Test', 21 'test' => 'Test',
22 ), 22 ),
23 'configgroup' => 23 'configgroup' =>
24 array ( 24 array (
25 - 'basic' => 'Basic',  
26 - 'email' => 'Email',  
27 - 'dictionary' => 'Dictionary',  
28 - 'user' => 'User',  
29 - 'example' => 'Example', 25 + 'basic' => '基础配置',
  26 + 'email' => '邮件配置',
  27 + 'dictionary' => '字典配置',
  28 + 'user' => '会员配置',
  29 + 'example' => '密钥配置',
30 ), 30 ),
31 'mail_type' => '1', 31 'mail_type' => '1',
32 'mail_smtp_host' => 'smtp.qq.com', 32 'mail_smtp_host' => 'smtp.qq.com',
@@ -37,13 +37,15 @@ return array ( @@ -37,13 +37,15 @@ return array (
37 'mail_from' => '10000@qq.com', 37 'mail_from' => '10000@qq.com',
38 'attachmentcategory' => 38 'attachmentcategory' =>
39 array ( 39 array (
40 - 'category1' => 'Category1',  
41 - 'category2' => 'Category2',  
42 - 'custom' => 'Custom', 40 + 'category1' => '分类一',
  41 + 'category2' => '分类二',
  42 + 'custom' => '自定义',
43 ), 43 ),
44 'user_agreement' => '<p>64645646564公开警告</p><p>;回来了框架</p>', 44 'user_agreement' => '<p>64645646564公开警告</p><p>;回来了框架</p>',
45 'privacy_agreement' => '<p>45315448</p><p>他房间后</p>', 45 'privacy_agreement' => '<p>45315448</p><p>他房间后</p>',
46 'notice' => '阿达萨达萨达撒旦撒旦', 46 'notice' => '阿达萨达萨达撒旦撒旦',
47 'advert' => '/assets/img/qrcode.png', 47 'advert' => '/assets/img/qrcode.png',
48 'invite_rule' => '啊实打实大苏打', 48 'invite_rule' => '啊实打实大苏打',
  49 + 'secret' => '',
  50 + 'appid' => '',
49 ); 51 );