Commit fb0a82ae by 杨树贤

fix

parent 8de2508d
......@@ -29,6 +29,13 @@ class RefreshHistoryPurchaseUser extends Command
*/
public function handle()
{
// ------------------ 关键代码 ------------------
set_time_limit(0); // 0 = 永不超时(最常用)
// 或者写成:ini_set('max_execution_time', 0);
// ------------------------------------------------
// 可选:同时把内存也放开(经常一起用)
ini_set('memory_limit', '2G'); // 或 '-1' 无限
$mode = $this->option('mode');
$num = (int)$this->option('num');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment