From 6fa855fc07d3984a70497b08aee2a102be207d41 Mon Sep 17 00:00:00 2001 From: ljl Date: Mon, 23 Oct 2023 14:38:10 +0800 Subject: [PATCH] yh --- Application/Sdk/Controller/BaseController.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Application/Sdk/Controller/BaseController.class.php b/Application/Sdk/Controller/BaseController.class.php index bc55d5e4..ff55eb43 100644 --- a/Application/Sdk/Controller/BaseController.class.php +++ b/Application/Sdk/Controller/BaseController.class.php @@ -531,7 +531,7 @@ class BaseController extends RestController */ private function spend_param($param=array()) { - + $productType = $param['product_type'] ?: 0; $user_entity = get_user_entity($param['user_id']); $promote = $this->getPromoteById($user_entity["promote_id"]); @@ -558,7 +558,7 @@ class BaseController extends RestController // $data_spned['pay_time'] = NOW_TIME; $data_spned['pay_status'] = $param["pay_status"]; $data_spned['market_admin_id'] = $this->getMarketAdminId($promote); - $data_spned['is_check'] = $this->getIsCheckValue($promote, $param["game_id"]); + $data_spned['is_check'] = $productType == 1 ? 2 : $this->getIsCheckValue($promote, $param["game_id"]); if ($param["pay_status"] == 1) $data_spned['payed_time'] = time(); else @@ -591,6 +591,7 @@ class BaseController extends RestController $data_spned['merchant_way'] = isset($param['merchant_way']) ? $param['merchant_way'] : 0; $data_spned['partner_type'] = isset($param['main_id']) ? $param['main_id'] : 0; $data_spned['share_status'] = isset($param['share_status']) ? $param['share_status'] : 0; + $data_spned['product_type'] = $productType; return $data_spned; }