dever 7 年之前
父节点
当前提交
5a04326605
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      applet/src/Msg.php

+ 5 - 1
applet/src/Msg.php

@@ -85,6 +85,10 @@ class Msg
 					$update['form_id'] = $this->getFormId($info['project_id'], $update['touser']);
 				}
 
+				if (!$update['form_id']) {
+					return;
+				}
+
 				$where = array();
 				$where['option_msg_id'] = $info['id'];
 				$where['option_touser'] = $update['touser'];
@@ -203,7 +207,7 @@ class Msg
 			Dever::db('applet/msg_form')->delete($info['id']);
 			return $info['form_id'];
 		} else {
-			Dever::alert('错误的form_id');
+			return false;
 		}
 	}