wangxiaodong 3 years ago
parent
commit
2eb0931577
1 changed files with 3 additions and 4 deletions
  1. 3 4
      app/model/message/Message.php

+ 3 - 4
app/model/message/Message.php

@@ -168,18 +168,17 @@ class Message extends BaseModel
         }
 
         $data = json_encode([ $condition, $field ]);
-        /*$cache = Cache::get("message_getMessageInfo_" . $data);
+        $cache = Cache::get("message_getMessageInfo_" . $data);
         if (!empty($cache)) {
             return $this->success($cache);
-        }*/
+        }
         $info = model("message")->getInfo($condition, $field);
         $info["message_json_array"] = empty($info["message_json"]) ? [] : json_decode($info["message_json"], true);//消息配置
         $info["sms_json_array"] = empty($info["sms_json"]) ? [] : json_decode($info["sms_json"], true);//短信配置
         $info["wechat_json_array"] = empty($info["wechat_json"]) ? [] : json_decode($info["wechat_json"], true);//微信公众号配置
         $info["weapp_json_array"] = empty($info["weapp_json"]) ? [] : json_decode($info["weapp_json"], true);//微信小程序配置
         $info["aliapp_json_array"] = empty($info["aliapp_json"]) ? [] : json_decode($info["aliapp_json"], true);//阿里配置
-        echo "<pre>";print_r(json_decode($info["sms_json"], true));exit;
-        //Cache::tag("message")->set("message_getMessageInfo_" .  $data, $info);
+        Cache::tag("message")->set("message_getMessageInfo_" .  $data, $info);
         return $this->success($info);
     }