durong 5 years ago
parent
commit
24f5f52f8d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Repositories/V2/CmsContentTemplateSetRepository.php

+ 2 - 1
app/Repositories/V2/CmsContentTemplateSetRepository.php

@@ -20,6 +20,7 @@ class CmsContentTemplateSetRepository {
     //banner模板选专题-被使用计数
     public function countSubject($request)
     {
+        Log::debug(json_encode($request));
         $type = intval($request['type']);
         if ($type == 0) {
             $rule = json_decode($request['rule'], true);
@@ -29,7 +30,7 @@ class CmsContentTemplateSetRepository {
                 $templates->save();
             }
         }
-        if ($type == 1) {
+        if ($type == 1) { Log::debug($request['type']);
             $subject_id_array = json_decode($request['old_rule'], true);
             $rule = json_decode($request['rule'], true);
             if ($subject_id_array['link_type'] == 1 && $rule['link_type'] == 1) {//链接方式都为专题