ssg打印参数

master
chenzhi 5 years ago
parent 728f78db09
commit db6558bc76

@ -3,6 +3,7 @@ namespace Mobile\Controller;
use Org\Ipa365SDK\Ipa365; use Org\Ipa365SDK\Ipa365;
use Org\WeixinSDK\Weixin; use Org\WeixinSDK\Weixin;
use User\Api\MemberApi; use User\Api\MemberApi;
use Think\Log;
class SsgController extends BaseController { class SsgController extends BaseController {
const USER_NOT_ILLEGAL = -1; //用户名不合法 const USER_NOT_ILLEGAL = -1; //用户名不合法
@ -591,7 +592,7 @@ class SsgController extends BaseController {
$param['callback'] = "https://".$_SERVER['HTTP_HOST']."/mobile.php/Ssg/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}"; $param['callback'] = "https://".$_SERVER['HTTP_HOST']."/mobile.php/Ssg/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
//$param['notifyurl'] = "https://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay"; //$param['notifyurl'] = "https://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay";
} }
Log::write(serialize($param), Log::DEBUG);
$ali_pay = $this->alipay($param); $ali_pay = $this->alipay($param);
redirect($ali_pay['url']); redirect($ali_pay['url']);
}else{ }else{

@ -8,6 +8,7 @@
namespace Think; namespace Think;
use Org\UcenterSDK\Ucservice; use Org\UcenterSDK\Ucservice;
use Think\Log;
class Pay class Pay
{ {
@ -167,8 +168,10 @@ class Pay
break; break;
} }
$notifyurl = $vo->getNotifyUrl(); $notifyurl = $vo->getNotifyUrl();
if (!$notifyurl) if (!$notifyurl){
$notifyurl = 'http://' . $_SERVER ['HTTP_HOST'] . '/callback.php/Notify2/notify/apitype/alipay/methodtype/notify'; $notifyurl = 'http://' . $_SERVER ['HTTP_HOST'] . '/callback.php/Notify2/notify/apitype/alipay/methodtype/notify';
}
Log::write($notifyurl, Log::DEBUG);
$request->setNotifyUrl($notifyurl); $request->setNotifyUrl($notifyurl);
switch ($type) { switch ($type) {

Loading…
Cancel
Save