Authored by 郝肖肖

微信 get openid log

@@ -6,6 +6,7 @@ use Plugin\Pay\weixin\lib\WxPayApi; @@ -6,6 +6,7 @@ use Plugin\Pay\weixin\lib\WxPayApi;
6 use Plugin\Pay\weixin\lib\WxPayConfig; 6 use Plugin\Pay\weixin\lib\WxPayConfig;
7 use Plugin\Pay\weixin\lib\WxPayException; 7 use Plugin\Pay\weixin\lib\WxPayException;
8 use Plugin\Pay\weixin\lib\WxPayJsApiPay; 8 use Plugin\Pay\weixin\lib\WxPayJsApiPay;
  9 +use Plugin\UdpLog;
9 10
10 /** 11 /**
11 * 12 *
@@ -115,6 +116,9 @@ class JsApiPay @@ -115,6 +116,9 @@ class JsApiPay
115 //运行curl,结果以jason形式返回 116 //运行curl,结果以jason形式返回
116 $res = curl_exec($ch); 117 $res = curl_exec($ch);
117 curl_close($ch); 118 curl_close($ch);
  119 +
  120 + UdpLog::info('微信获取openid,function:GetOpenidFromMp, 结果,', array('code' => $code, 'res' => $res));
  121 +
118 //取出openid 122 //取出openid
119 $data = json_decode($res, true); 123 $data = json_decode($res, true);
120 $this->data = $data; 124 $this->data = $data;