From 2cdc89bed9f94a48a8e238f50f8fe8e7225cc49e Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期四, 06 七月 2023 16:09:59 +0800 Subject: [PATCH] no message --- application/api/logic/taoke/Parser.php | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/application/api/logic/taoke/Parser.php b/application/api/logic/taoke/Parser.php index 10c4406..533c08d 100644 --- a/application/api/logic/taoke/Parser.php +++ b/application/api/logic/taoke/Parser.php @@ -26,6 +26,10 @@ protected static $topLevelName = ""; //椤剁骇绛夌骇鍚嶇О + protected static $buyCount=-1;//璐拱娆℃暟 + + protected static $returnLimit=1;//浣i噾鍏ㄨ繑鐨勮喘涔版鏁伴檺鍒� + public function __construct(){ $level = 1; @@ -42,6 +46,12 @@ self::$userRate = $leveInfo['own_commission_rate'] * 0.01; $topLevelInfo = $ModelUserLevel->where(['level'=>3])->find(); if(empty($topLevelInfo)) fault('浠g悊閰嶇疆澶辫触'); + //鑾峰彇璐拱娆℃暟 + self::$buyCount=0; + if(self::$buyCount<=self::$returnLimit) + {//绗﹀悎鍏ㄨ繑瑙勫垯 + self::$userRate =1; + } self::$topFanliRate = $topLevelInfo['own_commission_rate'] * 0.01; self::$topLevelName = $topLevelInfo['level_name']; } @@ -93,7 +103,8 @@ 'dtitle' => '', //鍟嗗搧title 'goodsSign' => '', 'goods_sign'=>'', - 'goodsid' => '', + 'goodsid' => '', + 'goodsId'=>'', 'huodongType' => '', 'id' => '', 'jiage' => '', @@ -182,8 +193,8 @@ /** * 璁$畻鍟嗗搧灞曠ず杩斿埄閲戦 * - * @param [type] $price - * @param [type] $commissionRate + * @param [type] $price 鍒稿悗浠� + * @param [type] $commissionRate 鍒嗕剑姣斾緥 * @return void */ public static function rebate($price,$commissionRate,$otherRate = "") -- Gitblit v1.9.3