|
@@ -9,6 +9,7 @@ use think\console\input\Argument;
|
|
|
use think\console\input\Option;
|
|
|
use think\console\Output;
|
|
|
use think\facade\Db;
|
|
|
+use think\facade\Cache;
|
|
|
|
|
|
class companyStats extends Command
|
|
|
{
|
|
@@ -21,6 +22,9 @@ class companyStats extends Command
|
|
|
|
|
|
protected function execute(Input $input, Output $output)
|
|
|
{
|
|
|
+ $sttime = Cache::get("compTips");
|
|
|
+ if($sttime==1) return '';
|
|
|
+ Cache::set("compTips",1,1800);
|
|
|
$supplier = ["GS2302231124114965","GS2302231125079621","GS2302231323386950",'GS2203161855277894'];
|
|
|
try{
|
|
|
foreach ($supplier as $sp){
|