|
|
|
@ -189,7 +189,7 @@ class ExchangeController extends BaseController{
|
|
|
|
|
$testUser = ['test11', 'test12', 'test13', 'test142',
|
|
|
|
|
'test171','test830','test1003','test1002','test170','test169'];
|
|
|
|
|
$istest = false;
|
|
|
|
|
if (in_array($userPlayInfo['user_account'], $testUser)) {
|
|
|
|
|
if (in_array($request['account'], $testUser)) {
|
|
|
|
|
$istest = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -201,7 +201,7 @@ class ExchangeController extends BaseController{
|
|
|
|
|
$request['pay_way'] = 7;
|
|
|
|
|
$request['spend_ip'] = get_client_ip();
|
|
|
|
|
// pp($request);
|
|
|
|
|
file_put_contents("./Application/Sdk/OrderNo/".$request['user_id']."-".$request['game_id'].".txt",think_encrypt(json_encode($request)));
|
|
|
|
|
// file_put_contents("./Application/Sdk/OrderNo/".$request['user_id']."-".$request['game_id'].".txt",think_encrypt(json_encode($request)));
|
|
|
|
|
$url = C('PAY_DOMAIN') . '/sdk.php?s=/Spend/'.$payPage.'&user_id='.$request['user_id'].'&game_id='.$request['game_id'].'&type=1'.'&user_token='.$userToken.'&action=pay'.'&extend='.urlencode($request['extend']);
|
|
|
|
|
echo base64_encode(json_encode(array('status'=>200,'out_trade_no'=>$out_trade_no,'img'=>$url)));exit;
|
|
|
|
|
// 只走第三方支付 不走苹果支付
|
|
|
|
|