From eee2c3892c73057c426e1cef3fbb802961a09df6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 11 Jun 2024 11:58:07 +0800 Subject: [PATCH] 1 --- webapp/models/GoldBullion.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/webapp/models/GoldBullion.php b/webapp/models/GoldBullion.php index 51704a6b..213aa483 100644 --- a/webapp/models/GoldBullion.php +++ b/webapp/models/GoldBullion.php @@ -21,10 +21,25 @@ class GoldBullion extends BaseModel { array( 'open_address' => myself()->_getAddress(), 'open_status' => self::OPEN_STATUS_PENDING, + 'returned' => 0, ) ); if (count($rows) > 0) { - + foreach ($rows as $row) { + SqlHelper::update( + myself()->_getSelfMysql(), + 't_gold_bullion', + array( + 'idx' => $row['idx'] + ), + array( + 'open_status' => self::OPEN_STATUS_SEND_BEGIN, + 'open_try_count' => function () { + return "open_try_count + 1"; + }, + ) + ); + } } }