From b764f8665cf02de70e78ea64d99bd27d115548d4 Mon Sep 17 00:00:00 2001
From: heyuntao <heyuntao@LAPTOP-MP4HD5NS>
Date: 星期二, 18 七月 2023 10:12:56 +0800
Subject: [PATCH] no message

---
 application/api/logic/taoke/Parser.php |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/application/api/logic/taoke/Parser.php b/application/api/logic/taoke/Parser.php
index adce3cc..a1d519f 100644
--- a/application/api/logic/taoke/Parser.php
+++ b/application/api/logic/taoke/Parser.php
@@ -7,7 +7,7 @@
 use app\api\logic\UserCollect;
 use app\api\logic\User as LogicUser;
 use app\common\model\UserLevel as ModelUserLevel;
-
+use \app\common\model\UserExtend as ModelUserExtend;
 class Parser extends BasicLogic
 {
     //TODO 妫�鏌ユ墍鏈夋帴鍙f槸涓嶆槸鏈夎皟鏁寸殑锛岄渶瑕佷紶浠g悊鐨勭浉搴斿瓧娈�
@@ -28,7 +28,7 @@
 
     protected static $buyCount=-1;//璐拱娆℃暟
 
-    protected static $returnLimit=-2;//浣i噾鍏ㄨ繑鐨勮喘涔版鏁伴檺鍒�
+    protected static $returnLimit=1;//浣i噾鍏ㄨ繑鐨勮喘涔版鏁伴檺鍒�
 
 
     public function __construct(){
@@ -47,11 +47,16 @@
         $topLevelInfo = $ModelUserLevel->where(['level'=>3])->find();
         if(empty($topLevelInfo)) fault('浠g悊閰嶇疆澶辫触');
         //鑾峰彇璐拱娆℃暟
-        //self::$buyCount=0;
-        if(self::$buyCount>0&&self::$buyCount<=self::$returnLimit)
+       /*  $ModelUserExtend=new ModelUserExtend();
+        $userBuy= $ModelUserExtend->where(['id'=>USERID])->find();
+        if(!empty($userBuy))
+        {
+            self::$buyCount=$userBuy['tradecount'];
+        }
+        if(self::$buyCount>=0&&self::$buyCount<self::$returnLimit)
         {//绗﹀悎鍏ㄨ繑瑙勫垯
             self::$userRate =1;
-        }
+        } */
         self::$topFanliRate = $topLevelInfo['own_commission_rate'] * 0.01;
         self::$topLevelName = $topLevelInfo['level_name'];
     }

--
Gitblit v1.9.3