作者 李忠强

更新

@@ -16,13 +16,12 @@ use think\Db; @@ -16,13 +16,12 @@ 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 /**
23 * @ApiTitle (商品详情) 23 * @ApiTitle (商品详情)
24 * @ApiMethod (POST) 24 * @ApiMethod (POST)
25 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
26 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id") 25 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
27 * @ApiReturn ({ 26 * @ApiReturn ({
28 'code':'1', 27 'code':'1',
@@ -68,7 +67,6 @@ class Goods extends Api @@ -68,7 +67,6 @@ class Goods extends Api
68 /** 67 /**
69 * @ApiTitle (商品规格) 68 * @ApiTitle (商品规格)
70 * @ApiMethod (POST) 69 * @ApiMethod (POST)
71 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
72 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id") 70 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
73 * @ApiReturn ({ 71 * @ApiReturn ({
74 'code':'1', 72 'code':'1',
@@ -147,7 +145,6 @@ class Goods extends Api @@ -147,7 +145,6 @@ class Goods extends Api
147 /** 145 /**
148 * @ApiTitle (商品详情页评价) 146 * @ApiTitle (商品详情页评价)
149 * @ApiMethod (POST) 147 * @ApiMethod (POST)
150 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
151 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id") 148 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
152 * @ApiReturn ({ 149 * @ApiReturn ({
153 'code':'1', 150 'code':'1',
@@ -199,7 +196,6 @@ class Goods extends Api @@ -199,7 +196,6 @@ class Goods extends Api
199 /** 196 /**
200 * @ApiTitle (商品评价列表) 197 * @ApiTitle (商品评价列表)
201 * @ApiMethod (POST) 198 * @ApiMethod (POST)
202 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
203 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id") 199 * @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
204 * @ApiParams (name=page, type=integer, required=false, description="页数") 200 * @ApiParams (name=page, type=integer, required=false, description="页数")
205 * @ApiReturn ({ 201 * @ApiReturn ({
@@ -21,7 +21,7 @@ use Yansongda\Pay\Pay; @@ -21,7 +21,7 @@ use Yansongda\Pay\Pay;
21 */ 21 */
22 class Order extends Api 22 class Order extends Api
23 { 23 {
24 - protected $noNeedLogin = ['friendPay']; 24 + protected $noNeedLogin = ['friendPay','commentOrderDetail'];
25 protected $noNeedRight = ['*']; 25 protected $noNeedRight = ['*'];
26 26
27 /** 27 /**
@@ -618,7 +618,6 @@ class Order extends Api @@ -618,7 +618,6 @@ class Order extends Api
618 /** 618 /**
619 * @ApiTitle (评价订单详情页) 619 * @ApiTitle (评价订单详情页)
620 * @ApiMethod (POST) 620 * @ApiMethod (POST)
621 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
622 * @ApiParams (name="id", type="integer", required=true, description="订单ID") 621 * @ApiParams (name="id", type="integer", required=true, description="订单ID")
623 * @ApiReturn ({ 622 * @ApiReturn ({
624 'code':'1', 623 'code':'1',
@@ -17,7 +17,7 @@ use think\Db; @@ -17,7 +17,7 @@ use think\Db;
17 class Rider extends Api 17 class Rider extends Api
18 { 18 {
19 protected $noNeedRight = ['*']; 19 protected $noNeedRight = ['*'];
20 - protected $noNeedLogin = ['*']; 20 + protected $noNeedLogin = ['service'];
21 21
22 /** 22 /**
23 * @ApiTitle (骑手订单页) 23 * @ApiTitle (骑手订单页)
@@ -367,7 +367,6 @@ class Rider extends Api @@ -367,7 +367,6 @@ class Rider extends Api
367 /** 367 /**
368 * @ApiTitle (联系客服) 368 * @ApiTitle (联系客服)
369 * @ApiMethod (POST) 369 * @ApiMethod (POST)
370 - * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")  
371 * @ApiReturn ({ 370 * @ApiReturn ({
372 'code':'1', 371 'code':'1',
373 'msg':'客服信息' 372 'msg':'客服信息'
@@ -16,8 +16,7 @@ use think\Db; @@ -16,8 +16,7 @@ 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 = ['third','joinUs'];
21 protected $noNeedRight = '*'; 20 protected $noNeedRight = '*';
22 21
23 public function _initialize() 22 public function _initialize()