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()
{
$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();

@ -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',
]);

Loading…
Cancel
Save