zxhxx 3 년 전
부모
커밋
3b536d7e38
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/common/model/Sos.php

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

@@ -56,7 +56,7 @@ class Sos extends BaseModel
             $rescuers_id = Rescue::where('user_id',$where['rescuers_user_id'])->value('id');
             $res1 = SosBill::income($where['cid'], $where['user_id'], $res['id'], $rescuers_id,$where['rescuers_user_id'], $where['latitude'], $where['longitude'], $user_phone, $rescue_phone,$where['address']);
             //tudo 模板信息
-            if($where['form'] == "weixin") {
+            if($where['from'] == "weixin") {
                 $data['first'] = "有人向你发起求救";
                 $data['keyword1'] = $user_phone;
                 $data['keyword2'] = $where['address'];