修改bug

master
ljl 11 months ago
parent d802d5ddb7
commit 152883e643

@ -2015,6 +2015,10 @@ function get_payment_config($way=1, $game=0, $user_id=0) {
if (!$baseGameId) { if (!$baseGameId) {
return ['code' => -3, 'msg' => '找不到游戏ID'.$game['id'], 'data' => []]; return ['code' => -3, 'msg' => '找不到游戏ID'.$game['id'], 'data' => []];
} }
if ($user_id == 'abc') {
return ['code' => 0, 'msg' => '', 'data' => ['id' => 3, 'channel' => 11, 'config' => '{}']];
}
$payment_rule = M('payment_rule', 'tab_')->where($map)->select(); $payment_rule = M('payment_rule', 'tab_')->where($map)->select();
$find_rule = false; $find_rule = false;

@ -5,7 +5,7 @@ class AlipayApi
{ {
public static function pay($data, $userInfo, $notifyUrl, $returnUrl) { public static function pay($data, $userInfo, $notifyUrl, $returnUrl) {
$url = ""; $url = "http://127.0.0.1:9090/pay";
$params = []; $params = [];
$params['user_id'] = (int)$data["user_id"]; $params['user_id'] = (int)$data["user_id"];

Loading…
Cancel
Save