|
|
@@ -5,6 +5,7 @@ namespace addons\epay\library; |
|
|
|
use addons\unishop\model\Config; |
|
|
|
use Exception; |
|
|
|
use think\Log; |
|
|
|
use think\Request; |
|
|
|
use think\Response; |
|
|
|
use think\Session; |
|
|
|
use Yansongda\Pay\Gateways\Alipay\Alipay; |
|
|
@@ -131,7 +132,8 @@ class Service |
|
|
|
$html = $pay->driver($type)->gateway('wap')->pay($params); |
|
|
|
$result = [ |
|
|
|
"trade_type"=>"MWEB", |
|
|
|
"mweb_url"=>$html |
|
|
|
"mweb_url"=>$html, |
|
|
|
"referer"=>Request::instance()->server('HTTP_REFERER') |
|
|
|
]; |
|
|
|
return json_encode($result); |
|
|
|
break; |
|
|
|