|
|
@@ -101,7 +101,7 @@ class Service |
|
|
|
"trade_type"=>"MWEB", |
|
|
|
"mweb_url"=>$url |
|
|
|
]; |
|
|
|
return json_encode($result); |
|
|
|
return $result; |
|
|
|
} elseif ($request->isMobile()) { |
|
|
|
$method = 'wap'; |
|
|
|
} |
|
|
@@ -135,7 +135,7 @@ class Service |
|
|
|
"mweb_url"=>$html, |
|
|
|
"referer"=>Request::instance()->server('HTTP_REFERER') |
|
|
|
]; |
|
|
|
return json_encode($result); |
|
|
|
return $result; |
|
|
|
break; |
|
|
|
case 'app': |
|
|
|
//APP支付,直接返回字符串 |
|
|
@@ -161,7 +161,7 @@ class Service |
|
|
|
} |
|
|
|
} |
|
|
|
//返回字符串 |
|
|
|
$html = is_array($html) ? json_encode($html) : $html; |
|
|
|
// $html = is_array($html) ? json_encode($html) : $html; |
|
|
|
return $html; |
|
|
|
} |
|
|
|
|
|
|
|