fuyu 5 lat temu
rodzic
commit
1c79ac0066
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      application/inter/service/WechatService.php

+ 2 - 2
application/inter/service/WechatService.php

@@ -51,7 +51,7 @@ class WechatService {
       // $url   = "http://wechat.pacsonline.cn/wx_patient/api/sendMsg?pushType=".."&openid=";
       // $full_url = $url . $v['openid']."&source=".$v['source']."&content=".$orderStr;
       // 请求
-      log::record('---------发送微信通知-完成订单-------');
+      log::record('---------发送微信通知-取消订单-------');
       log::record($url);
       $res = $this->curl_request($url, 'GET');
       log::record('---------微信通知结果--------');
@@ -119,7 +119,7 @@ class WechatService {
   // $full_url = $url . $v['openid']."&source=".$v['source']."&content=".$orderStr;
 
   private function getFullUrl($pushType, $openid, $source, $content) {
-    return self::BASE_URL."sendMsg?pushType=".$pushType."&openid=".$openid."&source=".$source."&content=".$content;
+    return self::BASE_URL."sendMsg?pushType=".$pushType."&openid=".$openid."&source=".urlencode($source)."&content=".$content;
   }
 
   private function getPushOrder($order_id) {