Commit 40f8b230 authored by luhongguang's avatar luhongguang

update: safe_mode接口

parent a4899e40
......@@ -285,4 +285,30 @@ class MarketingController extends Base
$lists = MarketingService::yingxiaoList($this->params);
$this->success(['result' => $lists]);
}
/**
* 小程序审核查询设置safe_mode版本号
* @throws Exception
*/
public function get_small_program_configAction()
{
$redis = RedisUtil::getInstance('cache',['serializer'=>'none']);
$key = "small_program_config";
$value = $redis->get($key);
$this->success(['result' => $value]);
}
/**
* 小程序审核设置safe_mode版本号
* @throws Exception
*/
public function set_small_program_configAction()
{
$params = $this->params;
$cvVersion = empty($params["version"]) ? "" : $params["version"];
$redis = RedisUtil::getInstance('cache',['serializer'=>'none']);
$key = "small_program_config";
$res = $redis->set($key, $cvVersion);
$this->success(['result' => $res]);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment