作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !290
@@ -136,7 +136,7 @@ class HtmlCollect extends Command @@ -136,7 +136,7 @@ class HtmlCollect extends Command
136 } 136 }
137 137
138 138
139 - $update_log = UpdateLog::where('status', UpdateLog::STATUS_COM)->where('collect_status', UpdateLog::COLLECT_STATUS_UN)->orderBy('project_id', 'asc')->first(); 139 + $update_log = UpdateLog::whereNotIn('project_id', [555, 626])->where('status', UpdateLog::STATUS_COM)->where('collect_status', UpdateLog::COLLECT_STATUS_UN)->orderBy('project_id', 'asc')->first();
140 if (!$update_log) { 140 if (!$update_log) {
141 return false; 141 return false;
142 } 142 }
@@ -138,7 +138,7 @@ class HtmlLanguageSpecialCollect extends Command @@ -138,7 +138,7 @@ class HtmlLanguageSpecialCollect extends Command
138 } 138 }
139 139
140 140
141 - $update_log = UpdateLog::where('project_id', 555)->where('status', UpdateLog::STATUS_COM)->where('collect_status', '>', UpdateLog::COLLECT_STATUS_MAIN)->first(); 141 + $update_log = UpdateLog::whereIn('project_id', [555, 626])->where('status', UpdateLog::STATUS_COM)->where('collect_status', UpdateLog::COLLECT_STATUS_UN)->first();
142 if (!$update_log) { 142 if (!$update_log) {
143 return false; 143 return false;
144 } 144 }
@@ -176,7 +176,7 @@ class HtmlLanguageSpecialCollect extends Command @@ -176,7 +176,7 @@ class HtmlLanguageSpecialCollect extends Command
176 DB::disconnect('custom_mysql'); 176 DB::disconnect('custom_mysql');
177 177
178 if ($complete) { 178 if ($complete) {
179 - $update_log->collect_status = UpdateLog::COLLECT_STATUS_MAIN; 179 + $update_log->collect_status = UpdateLog::COLLECT_STATUS_COM;
180 $update_log->save(); 180 $update_log->save();
181 return 0; 181 return 0;
182 } 182 }