From 03bc96de7241879987e18a17670d16634c8e7653 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 9 Nov 2022 21:00:36 +0800 Subject: [PATCH] 1 --- sql/gamedb.sql | 1 + webapp/models/Transaction.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 0ce8a7bb..495d6bb1 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -782,6 +782,7 @@ CREATE TABLE `t_transaction` ( `item_uniid` bigint NOT NULL DEFAULT '0' COMMENT '道具uniid', `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', `status` int(11) NOT NULL DEFAULT '0' COMMENT 'status', + `client_confirmed` int(11) NOT NULL DEFAULT '0' COMMENT 'client_confirmed', `client_result` mediumblob COMMENT 'client_result', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', diff --git a/webapp/models/Transaction.php b/webapp/models/Transaction.php index df598f8f..74909e56 100644 --- a/webapp/models/Transaction.php +++ b/webapp/models/Transaction.php @@ -40,6 +40,7 @@ class Transaction extends BaseModel { array( 'account_id' => myself()->_getAccountId(), 'trans_id' => $transId, + 'client_confirmed' => 1 ) ); return $row; @@ -143,6 +144,7 @@ class Transaction extends BaseModel { ), array( 'client_result' => $result, + 'client_confirmed' => 1, 'modifytime' => myself()->_getNowTime() ) );