@ -2015,6 +2015,10 @@ function get_payment_config($way=1, $game=0, $user_id=0) {
if (!$baseGameId) {
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();
$find_rule = false;
@ -5,7 +5,7 @@ class AlipayApi
{
public static function pay($data, $userInfo, $notifyUrl, $returnUrl) {
$url = "";
$url = "http://127.0.0.1:9090/pay";
$params = [];
$params['user_id'] = (int)$data["user_id"];