zxhxx 3 lat temu
rodzic
commit
53cacaf660

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

@@ -67,7 +67,7 @@ class Sos extends BaseModel
                 $data['keyword4'] = "";
                 $data['remark'] ="详细请点信息";
                 @file_put_contents("sos.txt",json_encode($data)."\r\n");
-               $rs =  WechatTempleService::sendTemplate($where['cid'], UserRelation::userIdToOpenId('rescuers_user_id'), WechatTempleService::EMERGANCY_RESCUE,$data,$where['re_url']);
+               $rs =  WechatTempleService::sendTemplate($where['cid'], UserRelation::userIdToOpenId($where['rescuers_user_id']), WechatTempleService::EMERGANCY_RESCUE,$data,$where['re_url']);
                 @file_put_contents("sos.txt",json_encode($rs)."\r\n",8);
             }
             if($res && $res1)

+ 1 - 0
extend/liuniu/WechatTempleService.php

@@ -41,6 +41,7 @@ class WechatTempleService
      */
     public static function sendTemplate($cid,$openid, $templateId, array $data, $url = null)
     {
+
         $tempid = TemplateInfo::where('cid',$cid)->where('tempkey', $templateId)->value('tempid');
         if (!$tempid) return false;
         try {