浏览代码

修改代码

fuyu 5 年之前
父节点
当前提交
a6d072aed7
共有 1 个文件被更改,包括 14 次插入14 次删除
  1. 14 14
      application/inter/service/WechatService.php

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

@@ -8,21 +8,21 @@ class WechatService {
 
   public function pushWechatOrder($exam_id) {
     var_dump($exam_id);
-    $openids = $this->getPushOpenId($exam_id);
-    var_dump($openids);
-    if(!$openids) {
-      log::record('---------没有找到对应openid--------');
-      return false;
-    }
+    // $openids = $this->getPushOpenId($exam_id);
+    // var_dump($openids);
+    // if(!$openids) {
+    //   log::record('---------没有找到对应openid--------');
+    //   return false;
+    // }
 
-    foreach($openids as $v) {
-      $url   = "http://wechat.pacsonline.cn/wx_patient/api/sendMsg?pushType=1&openid=";
-      $full_url = $url . $v['openid'];
-      // 请求
-      $res = $this->curl_request($full_url, 'GET');
-      var_dump($res);
-    }
-    return true;
+    // foreach($openids as $v) {
+    //   $url   = "http://wechat.pacsonline.cn/wx_patient/api/sendMsg?pushType=1&openid=";
+    //   $full_url = $url . $v['openid'];
+    //   // 请求
+    //   $res = $this->curl_request($full_url, 'GET');
+    //   var_dump($res);
+    // }
+    // return true;
   }
 
   public function pushWechatCancel() {