zxhxx 3 years ago
parent
commit
1273019307
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/common/model/Sos.php

+ 2 - 1
application/common/model/Sos.php

@@ -66,7 +66,8 @@ class Sos extends BaseModel
                 $data['keyword3'] = date("Y-m-d H:i:s");
                 $data['keyword4'] = "";
                 $data['remark'] ="详细请点信息";
-                WechatTempleService::sendTemplate($where['cid'], UserRelation::userIdToOpenId('rescuers_user_id'), WechatTempleService::EMERGANCY_RESCUE,$data,$where['re_url']);
+               $rs =  WechatTempleService::sendTemplate($where['cid'], UserRelation::userIdToOpenId('rescuers_user_id'), WechatTempleService::EMERGANCY_RESCUE,$data,$where['re_url']);
+                @file_put_contents("sos.txt",json_encode($rs));
             }
             if($res && $res1)
             {