diff --git a/app/Admin/Controllers/v3/CategoryController.php b/app/Admin/Controllers/v3/CategoryController.php
index 3f1b94c..be548dd 100644
--- a/app/Admin/Controllers/v3/CategoryController.php
+++ b/app/Admin/Controllers/v3/CategoryController.php
@@ -32,7 +32,7 @@ class CategoryController extends AdminController
$logo = "
";
$actions = '';
- $actions = (in_array($branch['id'],$select)) ?'已绑定':$actions;
+ $actions = (in_array($branch['id'],$select)) ?'已绑定':$actions;
return "{$branch['id']} - {$branch['title']} $logo $actions";
});
diff --git a/app/Admin/Forms/CategoryTieForm.php b/app/Admin/Forms/CategoryTieForm.php
index 01f7e36..a8a91e9 100644
--- a/app/Admin/Forms/CategoryTieForm.php
+++ b/app/Admin/Forms/CategoryTieForm.php
@@ -31,6 +31,9 @@ class CategoryTieForm extends Form
'name' => $value->title
]);
}
+ if(count($data) > 0){
+ $this->ssdb->client()->hclear('applet_index_category');
+ }
}
$category = $this->ssdb->client()->multi_hset('applet_index_category',$data);