Merge branch 'hotfix/test_resource_new' of wmtx/platform into master

bug修复
master
廖金灵 4 years ago committed by Gogs
commit 35d34d1864

@ -40,14 +40,14 @@ class GameApiController extends Think {
public function send() public function send()
{ {
$role = [ $role = [
'role_id' => '6810778', 'role_id' => '6819493',
'user_account' => 'liaojl1130', 'user_account' => 'qh11102',
'sdk_version' => 1, 'sdk_version' => 1,
]; ];
$order = [ $order = [
'ref_amount' => 100, 'ref_amount' => '10.00',
'ref_id' => '10', 'ref_id' => '8',
'remark' => 'ELF测试资源发放1', 'remark' => '测试',
'order_no' => date('YmdHis') . rand(1000, 9999) . '_1', 'order_no' => date('YmdHis') . rand(1000, 9999) . '_1',
]; ];
$service = new TestingResourceService(); $service = new TestingResourceService();

@ -108,11 +108,11 @@ class TestingResourceService
$gameCatClient = new GameCatClient(); $gameCatClient = new GameCatClient();
$result = $gameCatClient->api('provide', [ $result = $gameCatClient->api('provide', [
'roleId' => $role['role_id'], 'roleId' => $role['role_id'],
'amount' => $order['ref_amount'], 'amount' => intval($order['ref_amount']),
'supportItem' => $order['ref_id'], 'supportItem' => $order['ref_id'],
'supportType' => '0', 'supportType' => '0',
'channelUid' => $role['user_account'], 'channelUid' => $role['user_account'],
'applyRemark' => $order['remark'], 'applyRemark' => $order['remark'] == '' ? '测试资源申请' : $order['remark'],
'applyId' => $order['order_no'], 'applyId' => $order['order_no'],
'device_type' => $role['sdk_version'] == 1 ? 'andriod' : 'ios', 'device_type' => $role['sdk_version'] == 1 ? 'andriod' : 'ios',
]); ]);

Loading…
Cancel
Save