application/api/logic/taoke/Parser.php
@@ -28,7 +28,7 @@ protected static $buyCount=-1;//购买次数 protected static $returnLimit=1;//佣金全返的购买次数限制 protected static $returnLimit=-2;//佣金全返的购买次数限制 public function __construct(){ @@ -47,8 +47,8 @@ $topLevelInfo = $ModelUserLevel->where(['level'=>3])->find(); if(empty($topLevelInfo)) fault('代理配置失败'); //获取购买次数 self::$buyCount=0; if(self::$buyCount<=self::$returnLimit) //self::$buyCount=0; if(self::$buyCount>0&&self::$buyCount<=self::$returnLimit) {//符合全返规则 self::$userRate =1; }