45 lines
1.8 KiB
PHP
45 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use App\Models\MerchantAccount;
|
|
|
|
class CheckChooseTemplate extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'checkChooseTemplate';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = '老师没有选择模板给默认值';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function handle()
|
|
{
|
|
MerchantAccount::whereNull('template_position')->update(['template_position'=>'[{"name":"\u8d44\u8baf","position":1},{"name":"\u670d\u52a1","position":1},{"name":"\u6d3b\u52a8","position":1},{"name":"\u8bfe\u7a0b","position":1},{"name":"\u54a8\u8be2","position":1},{"name":"\u6211\u7684","position":1}]']);
|
|
MerchantAccount::whereNull('choose_tarbar')->update(['choose_tarbar'=>'[{"title":"\u54a8\u8be2","to":"\/information","active":"https:\/\/image.fulllinkai.com\/202109\/02\/9905f4767819a71f3937d7fb5fd4945b.png","inactive":"https:\/\/image.fulllinkai.com\/202109\/02\/b59301e4d4208377b68717af663429d9.png"},{"title":"\u670d\u52a1","to":"\/serve","active":"https:\/\/image.fulllinkai.com\/202109\/02\/67a27b4505f91092ab4f813ea239f489.png","inactive":"https:\/\/image.fulllinkai.com\/202109\/02\/811f648fb0f1a88b6ae16ebc24a983ce.png"},{"title":"\u6211\u7684","to":"\/my","active":"https:\/\/images.ufutx.com\/202108\/18\/30d2812a7acf8f0f35a0671cfa5c2fc9.png","inactive":"https:\/\/images.ufutx.com\/202108\/18\/e2ca747feef9cbabedd5a9dfe2a70d31.png"}]']);
|
|
}
|
|
}
|