From 35bc4922c429fe4416437b389b2ddaeae0765d30 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Fri, 6 Dec 2024 15:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=94=A8=E6=88=B7=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=94=9F=E6=B4=BB=E4=BB=98=E6=AC=BE=E8=B7=B3=E8=BD=AC=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/BillionsLogic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/logic/BillionsLogic.php b/app/api/logic/BillionsLogic.php index 9006a1aa..7f0dde21 100755 --- a/app/api/logic/BillionsLogic.php +++ b/app/api/logic/BillionsLogic.php @@ -122,17 +122,18 @@ class BillionsLogic extends Logic ->where("residue_price",">","0") ->where("user_start_price",">","0") ->select()->toArray(); + var_dump($result); if(count($result)<1){ return false; } foreach($result as $key=>$value){ - $result = Db::name("user_billions_surplus_log") + $re = Db::name("user_billions_surplus_log") ->where("surplus_id",$value['surplus_id']) ->where("user_billion_id",$billion) ->find(); if($value['billions_id']>=$billion){ - if($result == null){ + if($re == null){ $d['surplus_id'] = $value['surplus_id']; $d['user_id'] = $user_id; $d['billions_id'] = $value['billions_id'];