tag
parent
57fbf9e8eb
commit
f14228509a
|
|
@ -13,6 +13,8 @@
|
||||||
|
|
||||||
### 定时任务
|
### 定时任务
|
||||||
|
|
||||||
- 自动取消未支付的订单: `php artisan order:close-expired`, 常驻内存执行(死循环)
|
[Liux:supervisor]
|
||||||
- 自动完成待收货的订单: `php artisan order:complete`, 常驻内存执行(死循环)
|
|
||||||
|
- 自动取消未支付的订单: `php artisan order:close-expired`
|
||||||
|
- 自动完成待收货的订单: `php artisan order:complete`
|
||||||
- 生成订单的提成记录: `php artisan order:distribute`
|
- 生成订单的提成记录: `php artisan order:distribute`
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class TagController extends AdminController
|
||||||
// dd(Request::Input('type', 0));
|
// dd(Request::Input('type', 0));
|
||||||
/** 操作 **/
|
/** 操作 **/
|
||||||
$grid->model()->setConstraints([
|
$grid->model()->setConstraints([
|
||||||
'type' => Request::Input('type', 0),
|
'type' => Request::Input('type', 1),
|
||||||
]);
|
]);
|
||||||
//新增
|
//新增
|
||||||
if (Admin::user()->can('dcat.admin.tags.create')) {
|
if (Admin::user()->can('dcat.admin.tags.create')) {
|
||||||
|
|
@ -79,12 +79,7 @@ class TagController extends AdminController
|
||||||
{
|
{
|
||||||
return Form::make(new Tag(), function (Form $form) {
|
return Form::make(new Tag(), function (Form $form) {
|
||||||
$types = Tag::$typeMaps;
|
$types = Tag::$typeMaps;
|
||||||
$type = Request::Input('type', 0);
|
$type = Request::Input('type', 1);
|
||||||
if ($types[$type]) {
|
|
||||||
$types = [
|
|
||||||
$type=> $types[$type],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
$form->display('id');
|
$form->display('id');
|
||||||
$form->radio('type')->options($types)->default($type)->required();
|
$form->radio('type')->options($types)->default($type)->required();
|
||||||
$form->text('name')->required();
|
$form->text('name')->required();
|
||||||
|
|
|
||||||
|
|
@ -19,19 +19,19 @@ class UserSeeder extends Seeder
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
// DB::table('user_infos')->truncate();
|
DB::table('user_infos')->truncate();
|
||||||
// DB::table('user_vips')->truncate();
|
DB::table('user_vips')->truncate();
|
||||||
// DB::table('socialite_users')->truncate();
|
DB::table('socialite_users')->truncate();
|
||||||
// DB::table('personal_access_tokens')->truncate();
|
DB::table('personal_access_tokens')->truncate();
|
||||||
|
|
||||||
// DB::table('wallets')->truncate();
|
DB::table('wallets')->truncate();
|
||||||
// DB::table('wallet_logs')->truncate();
|
DB::table('wallet_logs')->truncate();
|
||||||
// DB::table('wallet_to_bank_logs')->truncate();
|
DB::table('wallet_to_bank_logs')->truncate();
|
||||||
|
|
||||||
// DB::table('sales_value_logs')->truncate();
|
DB::table('sales_value_logs')->truncate();
|
||||||
|
|
||||||
// DB::table('balances')->truncate();
|
DB::table('balances')->truncate();
|
||||||
// DB::table('users')->truncate();
|
DB::table('users')->truncate();
|
||||||
$this->faker = $this->withFaker();
|
$this->faker = $this->withFaker();
|
||||||
$this->createUsers(1);
|
$this->createUsers(1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue