作者 邓超

存入草稿时,也给出uid

@@ -87,6 +87,7 @@ class listsSql { @@ -87,6 +87,7 @@ class listsSql {
87 */ 87 */
88 public static function saveDraft(array $data, array $email,int $draftid = 0):int { 88 public static function saveDraft(array $data, array $email,int $draftid = 0):int {
89 $draftData = [ 89 $draftData = [
  90 + 'uid' => -rand(0,99999999),
90 'subject' => $data['subject'], 91 'subject' => $data['subject'],
91 'from' => $data['email'], 92 'from' => $data['email'],
92 'from_name' => $data['nickname'], 93 'from_name' => $data['nickname'],