From e1b3762350b6c2761133ed3ed0f46b23900efccf Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Thu, 25 Apr 2019 16:58:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E9=BB=98=E8=AE=A4=E6=97=A0?= =?UTF-8?q?=E6=95=88=E5=85=B3=E9=94=AE=E8=AF=8D=E6=B2=A1=E6=9C=89=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=8E=A5=E5=85=A5=E5=BE=AE=E4=BF=A1=E5=AE=A2?= =?UTF-8?q?=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/model/wechat/WechatReply.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/admin/model/wechat/WechatReply.php b/application/admin/model/wechat/WechatReply.php index 4a82d2c7..0ba06a37 100644 --- a/application/admin/model/wechat/WechatReply.php +++ b/application/admin/model/wechat/WechatReply.php @@ -187,9 +187,7 @@ class WechatReply extends ModelBasic public static function reply($key,$default=''){ $res = self::where('key',$key)->where('status','1')->find(); if(empty($res)) $res = self::where('key','default')->where('status','1')->find(); - if(empty($res)){ - return WechatService::textMessage($default); - } + if(empty($res)) return WechatService::transfer(); $res['data'] = json_decode($res['data'],true); if($res['type'] == 'text'){ return WechatService::textMessage($res['data']['content']);