加入销毁变量
Showing
1 changed file
with
4 additions
and
1 deletions
| ... | @@ -76,7 +76,7 @@ class StakeholderIncomeSyncCommand extends Command | ... | @@ -76,7 +76,7 @@ class StakeholderIncomeSyncCommand extends Command |
| 76 | $serial_no = $task['serial_no']; | 76 | $serial_no = $task['serial_no']; |
| 77 | $http_res = []; | 77 | $http_res = []; |
| 78 | 78 | ||
| 79 | Log::channel('api')->warning(__METHOD__."streamid:{$key}:{$id}-即将处理任务", ['task'=>$task]); | 79 | Log::channel('api')->warning(__METHOD__."stream-id:{$key}:{$id}-即将处理任务", ['task'=>$task]); |
| 80 | 80 | ||
| 81 | //获取记录 | 81 | //获取记录 |
| 82 | if ($http_data = $this->resolveSyncData($serial_no)) { | 82 | if ($http_data = $this->resolveSyncData($serial_no)) { |
| ... | @@ -95,6 +95,9 @@ class StakeholderIncomeSyncCommand extends Command | ... | @@ -95,6 +95,9 @@ class StakeholderIncomeSyncCommand extends Command |
| 95 | 95 | ||
| 96 | //标记处理 | 96 | //标记处理 |
| 97 | $this->consumeTask($redis, $http_res, $key, $id); | 97 | $this->consumeTask($redis, $http_res, $key, $id); |
| 98 | |||
| 99 | //销毁变量 | ||
| 100 | unset($redis, $id, $task, $serial_no, $http_res, $http_data); | ||
| 98 | } | 101 | } |
| 99 | } | 102 | } |
| 100 | } | 103 | } | ... | ... |
-
Please register or sign in to post a comment