diff --git a/Application/Admin/Controller/GameApiController.class.php b/Application/Admin/Controller/GameApiController.class.php index e6ba5ef67..7bd30f474 100644 --- a/Application/Admin/Controller/GameApiController.class.php +++ b/Application/Admin/Controller/GameApiController.class.php @@ -40,14 +40,14 @@ class GameApiController extends Think { public function send() { $role = [ - 'role_id' => '6810778', - 'user_account' => 'liaojl1130', + 'role_id' => '6819493', + 'user_account' => 'qh11102', 'sdk_version' => 1, ]; $order = [ - 'ref_amount' => 100, - 'ref_id' => '10', - 'remark' => 'ELF测试资源发放1', + 'ref_amount' => '10.00', + 'ref_id' => '8', + 'remark' => '测试', 'order_no' => date('YmdHis') . rand(1000, 9999) . '_1', ]; $service = new TestingResourceService(); diff --git a/Application/Base/Service/TestingResourceService.class.php b/Application/Base/Service/TestingResourceService.class.php index 6954af0e6..31db4fd23 100644 --- a/Application/Base/Service/TestingResourceService.class.php +++ b/Application/Base/Service/TestingResourceService.class.php @@ -108,11 +108,11 @@ class TestingResourceService $gameCatClient = new GameCatClient(); $result = $gameCatClient->api('provide', [ 'roleId' => $role['role_id'], - 'amount' => $order['ref_amount'], + 'amount' => intval($order['ref_amount']), 'supportItem' => $order['ref_id'], 'supportType' => '0', 'channelUid' => $role['user_account'], - 'applyRemark' => $order['remark'], + 'applyRemark' => $order['remark'] == '' ? '测试资源申请' : $order['remark'], 'applyId' => $order['order_no'], 'device_type' => $role['sdk_version'] == 1 ? 'andriod' : 'ios', ]);