diff --git a/service/Application/Service/AlipayLifeService.class.php b/service/Application/Service/AlipayLifeService.class.php index 80feb8e1e..2b95fe406 100755 --- a/service/Application/Service/AlipayLifeService.class.php +++ b/service/Application/Service/AlipayLifeService.class.php @@ -419,6 +419,11 @@ class AlipayLifeService // 获取消息内容 $content_count = (int) M('AlipayLifeMessageContent')->where(['alipay_life_message_id'=>$message['id']])->count(); + if(empty($content_count)) + { + return DataReturn('消息内容不能为空', -1); + } + switch($message['send_type']) { case 0 :