作者 李忠强

更新

... ... @@ -16,13 +16,12 @@ use think\Db;
class Goods extends Api
{
protected $noNeedRight = ['*'];
// protected $noNeedLogin = ['*'];
protected $noNeedLogin = ['*'];
/**
* @ApiTitle (商品详情)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
* @ApiReturn ({
'code':'1',
... ... @@ -68,7 +67,6 @@ class Goods extends Api
/**
* @ApiTitle (商品规格)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
* @ApiReturn ({
'code':'1',
... ... @@ -147,7 +145,6 @@ class Goods extends Api
/**
* @ApiTitle (商品详情页评价)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
* @ApiReturn ({
'code':'1',
... ... @@ -199,7 +196,6 @@ class Goods extends Api
/**
* @ApiTitle (商品评价列表)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
* @ApiParams (name=page, type=integer, required=false, description="页数")
* @ApiReturn ({
... ...
... ... @@ -21,7 +21,7 @@ use Yansongda\Pay\Pay;
*/
class Order extends Api
{
protected $noNeedLogin = ['friendPay'];
protected $noNeedLogin = ['friendPay','commentOrderDetail'];
protected $noNeedRight = ['*'];
/**
... ... @@ -618,7 +618,6 @@ class Order extends Api
/**
* @ApiTitle (评价订单详情页)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name="id", type="integer", required=true, description="订单ID")
* @ApiReturn ({
'code':'1',
... ...
... ... @@ -17,7 +17,7 @@ use think\Db;
class Rider extends Api
{
protected $noNeedRight = ['*'];
protected $noNeedLogin = ['*'];
protected $noNeedLogin = ['service'];
/**
* @ApiTitle (骑手订单页)
... ... @@ -367,7 +367,6 @@ class Rider extends Api
/**
* @ApiTitle (联系客服)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiReturn ({
'code':'1',
'msg':'客服信息'
... ...
... ... @@ -16,8 +16,7 @@ use think\Db;
*/
class User extends Api
{
// protected $noNeedLogin = ['*'];
protected $noNeedLogin = ['third'];
protected $noNeedLogin = ['third','joinUs'];
protected $noNeedRight = '*';
public function _initialize()
... ...