作者 邓超

1

@@ -6,31 +6,6 @@ include_once __DIR__."/../vendor/autoload.php"; @@ -6,31 +6,6 @@ include_once __DIR__."/../vendor/autoload.php";
6 //$ids = db()->all('select `id` from `'.\Model\emailSql::$table.'` limit 1000 offset 0'); 6 //$ids = db()->all('select `id` from `'.\Model\emailSql::$table.'` limit 1000 offset 0');
7 //print_r($ids); 7 //print_r($ids);
8 8
9 -db()->insert('lists',[  
10 9
11 - 'msgno' => 1,  
12 - 'uid' => 1413523735,  
13 - 'subject' => '',  
14 - 'cc' => '',  
15 - 'bcc' => '',  
16 - 'from' => '15928184520@163.com',  
17 - 'from_name' => 15928184520,  
18 - 'to' => '281132704@qq.com',  
19 - 'to_name' => '[{"email":"281132704@qq.com","name":"281132704"}]',  
20 - 'date' => 1429682856,  
21 - 'message_id' => '<201504220636.b57ac3935949@www.youni.com>',  
22 - 'udate' => 1429682816,  
23 - 'size' => 776,  
24 - 'recent' => '',  
25 - 'seen' => 1,  
26 - 'draft' => '',  
27 - 'flagged' => '',  
28 - 'answered' => '',  
29 - 'folder_id' => '',  
30 - 'email_id' => 1,  
31 - 'uuid' => '5da4967fd91dde5eb6ca68f31408d04f',  
32 - 'is_file' => 0,  
33 - 'created_at' => '2023-02-18 14:28:44'  
34 -]);  
35 10
36 -//start_now_mail();  
  11 +start_now_mail();
@@ -101,7 +101,7 @@ class DbPool { @@ -101,7 +101,7 @@ class DbPool {
101 101
102 // 如果存储的值是数组,就json一次 102 // 如果存储的值是数组,就json一次
103 foreach ($data as $k=>$datum){ 103 foreach ($data as $k=>$datum){
104 - if(is_array($data)){ 104 + if(is_array($datum)){
105 $data[$k] = json_encode($datum,JSON_UNESCAPED_UNICODE); 105 $data[$k] = json_encode($datum,JSON_UNESCAPED_UNICODE);
106 } 106 }
107 } 107 }
@@ -133,7 +133,7 @@ class DbPool { @@ -133,7 +133,7 @@ class DbPool {
133 133
134 // 如果存储的值是数组,就json一次 134 // 如果存储的值是数组,就json一次
135 foreach ($data as $k=>$datum){ 135 foreach ($data as $k=>$datum){
136 - if(is_array($data)){ 136 + if(is_array($datum)){
137 $data[$k] = json_encode($datum,JSON_UNESCAPED_UNICODE); 137 $data[$k] = json_encode($datum,JSON_UNESCAPED_UNICODE);
138 } 138 }
139 } 139 }