From 9296e8778c6a98595ee4fba512157885f395d785 Mon Sep 17 00:00:00 2001 From: vone Date: Thu, 16 May 2019 20:27:35 +0800 Subject: [PATCH] =?UTF-8?q?V1.8=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + application/index/controller/Index.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 14b4ceb..0623c35 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ V免签为完全开源项目,开源项目意味着作者没有任何收入来 ## 更新记录 + v1.8(2019.05.16) + 更新监控端APP到1.6版本,理论支持更多手机 + + 尝试修复偶然情况下锁定金额无法被释放的问题 + v1.7.2(2019.05.12) + 修复当通知地址带有GET参数的时候,无法正常通知的问题 diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php index a2ddbd6..31fabbf 100644 --- a/application/index/controller/Index.php +++ b/application/index/controller/Index.php @@ -551,6 +551,20 @@ public function closeEndOrder(){ ->where("oid",$row['order_id']) ->delete(); } + + $rows = Db::name("tmp_price")->select(); + foreach ($rows as $row){ + $re = Db::name("pay_order")->where("order_id",$row['oid'])->find(); + if ($re){ + + }else{ + Db::name("tmp_price") + ->where("oid",$row['oid']) + ->delete(); + } + } + + return json($this->getReturn(1,"成功清理".$res."条订单")); }else{ return json($this->getReturn(1,"没有等待清理的订单"));