zxhxx 3 years ago
parent
commit
3b536d7e38
1 changed files with 1 additions and 1 deletions
  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'];