dever 7 years ago
parent
commit
5a04326605
1 changed files with 5 additions and 1 deletions
  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;
 		}
 	}