BaseSetController.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. <?php
  2. /**
  3. * 系统设置
  4. */
  5. namespace App\Http\Controllers\Admin;
  6. use Illuminate\Http\Request as Req;
  7. use Request;
  8. /**
  9. *
  10. */
  11. class BaseSetController extends SystemController {
  12. /**
  13. *
  14. */
  15. function Index() {
  16. $db = new \App\Models\Setinfo();
  17. $notice = $db->getInfo(8);//公告
  18. $bank = $db->getInfos(10);//银行卡
  19. $tan_box = $db->getInfo(6);//弹框内容
  20. $tan_box['extinfo'] = explode(',', $tan_box['extinfo']);
  21. $new_box = $db->getInfos(33);//新版弹框内容
  22. //dump($tan_box);
  23. $ser_qq = $db->getInfo(16);//QQ
  24. $connectioninfo = $db->getInfos(1017);//联系我们
  25. $agent = $db->getInfo(13);//代理
  26. $plat = $db->getInfo(17);//平台
  27. $game = $db->getInfo(15);//游戏
  28. $run = $db->getInfo(9);//跑马灯
  29. $two = $db->getInfo(20);//二级密码
  30. $url = $db->getInfo(18);//api
  31. $add_token = $db->getInfo(19);
  32. $agent_box = $db->getInfo(21);
  33. $quickUrl = $db->getInfo(22); //快捷支付网关地址
  34. $ipLimit = $db->getInfo(23);//IP设置
  35. $net = $db->getInfos(24);//网站设置
  36. $agentUrl = $db->getInfo(30);//网站设置
  37. $nagentFxUrl = $db->getInfo(1018);//级差代理分享域名设置
  38. $extension = $db->getInfo(31);//广告
  39. $open = $db->getInfo(1000);//开奖token
  40. $info = $db->getInfo(1024); //分享注册页面信息设置
  41. $startup = $db->getInfo(1111); //启动页设置设置
  42. $fsnum = $db->getInfo(1001); //启动页设置设置
  43. $wsport = $db->getInfo(9501);//websocket聊天服务器ip 端口设置
  44. $jnd = $db->getInfo(40);//加拿大28维护
  45. $playtest = $db->getInfo(2000);//试玩账号设置
  46. $oggame = $db->getInfo(2001);//真人
  47. $liao = $db->getInfo(2002);//聊天白名单
  48. $word = $db->getInfo(2003);//敏感字
  49. $imglink = $db->getInfo(2004);//图片服务器地址
  50. $H5ShareLink = $db->getInfo(2005);//h5代理分享链接
  51. $tokentime = $db->getInfo(100);//token前端处理失效时间
  52. $updateOdds = $db->getInfo(1911);//是否更新赔率
  53. $updateTime = $db->getInfo(1912);//缓存更新时间
  54. $paymentCate = $db->getInfo(20060);//充值排序设置
  55. if (!empty($jnd['extinfo'])) {
  56. $jnd['extinfo'] = explode('~', $jnd['extinfo']);
  57. }
  58. if (is_array($net) && count($net) > 0) {
  59. $net = $this->netData($net);
  60. }
  61. if (is_array($connectioninfo) && count($connectioninfo) > 0) {
  62. $connectioninfo = $this->netData($connectioninfo);
  63. }
  64. if (is_array($new_box) && count($new_box) > 0) {
  65. $new_box = $this->netData($new_box);
  66. }
  67. // var_dump($fsnum);die;//infotype
  68. $db_reg = new \App\Models\Settings();
  69. $reg = $db_reg->getSet();
  70. return view('admin.baseSet/index', ['notice' => $notice, 'bank' => $bank, 'tan_box' => $tan_box, 'new_box' => $new_box, 'qq' => $ser_qq, 'connectioninfo' => $connectioninfo,
  71. 'agent' => $agent, 'plat' => $plat, 'game' => $game, 'run' => $run, 'two' => $two,
  72. 'url' => $url, 'reg' => $reg, 'add_token' => $add_token, 'agent_box' => $agent_box,
  73. 'quickUl' => $quickUrl, 'ip' => $ipLimit, 'net' => $net, 'agentUrl' => $agentUrl,
  74. 'extension' => $extension,'fsnum'=>$fsnum, 'open' => $open, 'nagentFxUrl' => $nagentFxUrl, 'regInfo' => $info,
  75. 'startup' => $startup, 'wsport' => $wsport, 'jnd' => $jnd, 'playtest' => $playtest,
  76. 'oggame' => $oggame, 'liao' => $liao, 'word' => $word, 'imglink' => $imglink, 'H5ShareLink' => $H5ShareLink,
  77. 'tokentime' => $tokentime, 'updateOdds' => $updateOdds, 'updateTime' => $updateTime,'paymentCate'=>$paymentCate]);
  78. }
  79. function info() {
  80. $db = new \App\Models\Setinfo();
  81. $data = $db->getInfos(10);//银行卡
  82. return \App\Lib\DataTable\DataTable::init()->toJson($data['data'], $data['total']);
  83. }
  84. //处理网站设置数据
  85. private function netData($data) {
  86. $newarr = array();
  87. foreach ($data as $key => $value) {
  88. $newarr[$value['remarks']] = $value;
  89. }
  90. return $newarr;
  91. }
  92. function show() {
  93. return view('admin.systemSet/setBase');
  94. }
  95. //更新设置数据
  96. function updateInfo(Req $req) {
  97. $data = $req->all();
  98. $data = $data['data'];
  99. if (empty($data) || count($data) < 1) {
  100. return responseToJson(-5030002031);
  101. }
  102. if (isset($data['contentype'])) {
  103. if ($data['contentype'] == 2) {
  104. $data['remarks'] = strip_tags($data['remarks']);
  105. }
  106. $data['extinfo'] = $data['contentype'];
  107. unset($data['contentype']);
  108. }
  109. $type = $data['type'];
  110. unset($data['type']);
  111. if (is_numeric($type)) {
  112. $title = $data['infoname'];
  113. $db = new \App\Models\Setinfo;
  114. if ($type == 17) {
  115. //密码校验
  116. $res = $this->checkPwd($data['password']);
  117. if ($res < 0) {
  118. return responseToJson($res);
  119. }
  120. $path = $this->getPath();
  121. $status = $data['status'] == 1 ? 1 : 2;
  122. //拼凑token
  123. $suiji = GenEncryption();
  124. $token = session('adminInfo.admin_name') . '||' . session('adminInfo.passwd') . '||' . $suiji . '||' . REMOTE_KEY;
  125. $rtoken = md5(md5($token));
  126. $url = $path . 'close?status=' . $status . '&token=' . session('adminInfo.admin_name') . '||' . $rtoken . '||' . $suiji;
  127. $arrA = $this->getUrl($url);
  128. if ($arrA) {
  129. return responseToJson(-200031);
  130. }
  131. unset($data['password']);
  132. }
  133. if ($type == 24) {
  134. $netdata = array(
  135. 'infoname' => $data['infoname'],
  136. 'infotype' => $type,
  137. );
  138. $namedata = $netdata;
  139. $namedata['infocontent'] = $data['netname'];
  140. $namedata['remarks'] = 'netname';
  141. $recedata = $netdata;
  142. $recedata['infocontent'] = $data['recedata'];
  143. $recedata['remarks'] = 'recedata';
  144. $keywordsdata = $netdata;
  145. $keywordsdata['infocontent'] = $data['netkeywords'];
  146. $keywordsdata['remarks'] = 'netkeywords';
  147. $descdata = $netdata;
  148. $descdata['infocontent'] = $data['netdesc'];
  149. $descdata['remarks'] = 'netdesc';
  150. $logourl = $netdata;
  151. $logourl['infocontent'] = $data['logourl'];
  152. $logourl['remarks'] = 'logourl';
  153. $loginlogo = $netdata;
  154. $loginlogo['infocontent'] = $data['loginlogo'];
  155. $loginlogo['remarks'] = 'loginlogo';
  156. $quicklypay = $netdata;
  157. $quicklypay['infocontent'] = $data['quickly_pay'];
  158. $quicklypay['remarks'] = 'quickly_pay';
  159. $appdownload = $netdata;
  160. $appdownload['infocontent'] = $data['app_download'];
  161. $appdownload['remarks'] = 'app_download';
  162. //真人网址
  163. $realperson = $netdata;
  164. $realperson['infocontent'] = $data['real_person'];
  165. $realperson['remarks'] = 'real_person';
  166. /* if(empty($data['recedataid'])||empty($data['recedataid'])){
  167. $res = $db->addInfo($namedata);
  168. $res = $db->addInfo($recedata);
  169. $res = $db->addInfo($keywordsdata);
  170. $res = $db->addInfo($descdata);
  171. }else{*/
  172. //showhome //前台默认模板
  173. $showhome = $netdata;
  174. $showhome['infocontent'] = $data['showhome'];
  175. $showhome['remarks'] = 'showhome';
  176. $res = $db->checkdata($quicklypay, $data['quicklypayid']);
  177. $res = $db->checkdata($appdownload, $data['appdownloadid']);
  178. $res = $db->checkdata($logourl, $data['logourlid']);
  179. $res = $db->checkdata($loginlogo, $data['loginlogoid']);
  180. $res = $db->checkdata($namedata, $data['netnameid']);
  181. $res = $db->checkdata($recedata, $data['recedataid']);
  182. $res = $db->checkdata($keywordsdata, $data['netkeywordsid']);
  183. $res = $db->checkdata($descdata, $data['netdescid']);
  184. $res = $db->checkdata($realperson, $data['realpersonid']); //真人网址
  185. $res = $db->checkdata($showhome, $data['showhomeid']);
  186. /*}*/
  187. } else if ($type == 33) {
  188. $condata = array(
  189. 'infoname' => $data['infoname'],
  190. 'infotype' => $type,
  191. );
  192. // $newsdata = $condata;
  193. // $newsdata['infocontent'] = $data['important_news'];
  194. // $newsdata['remarks'] = 'important_news';
  195. $sitedata = $condata;
  196. $sitedata['infocontent'] = $data['site_navigation'];
  197. $sitedata['remarks'] = 'site_navigation';
  198. $contdata = $condata;
  199. $contdata['infocontent'] = $data['contact_customer'];
  200. $contdata['remarks'] = 'contact_customer';
  201. $timeddata = $condata;
  202. $timeddata['infocontent'] = $data['con_timed'];
  203. $timeddata['remarks'] = 'con_timed';
  204. if (!empty($newsdata['infocontent'])) $res = $db->checkdata($newsdata, $data['important_newsid']);
  205. if (!empty($sitedata['infocontent'])) $res = $db->checkdata($sitedata, $data['site_navigationid']);
  206. if (!empty($contdata['infocontent'])) $res = $db->checkdata($contdata, $data['contact_customerid']);
  207. if (!empty($timeddata['infocontent'])) $res = $db->checkdata($timeddata, $data['con_timedid']);
  208. /*}*/
  209. } else if ($type == 1017) {
  210. $condata = array(
  211. 'infoname' => $data['infoname'],
  212. 'infotype' => $type,
  213. );
  214. $teldata = $condata;
  215. $teldata['infocontent'] = $data['con_tel'];
  216. $teldata['remarks'] = 'con_tel';
  217. $qqdata = $condata;
  218. $qqdata['infocontent'] = $data['con_qq'];
  219. $qqdata['remarks'] = 'con_qq';
  220. $skypedata = $condata;
  221. $skypedata['infocontent'] = $data['con_skype'];
  222. $skypedata['remarks'] = 'con_skype';
  223. $onlinesdata = $condata;
  224. $onlinesdata['infocontent'] = $data['con_onlines'];
  225. $onlinesdata['remarks'] = 'con_onlines';
  226. $weixindata = $condata;
  227. $weixindata['infocontent'] = $data['con_weixin'];
  228. $weixindata['remarks'] = 'con_weixin';
  229. $emaildata = $condata;
  230. $emaildata['infocontent'] = $data['con_email'];
  231. $emaildata['remarks'] = 'con_email';
  232. if (!empty($teldata['infocontent'])) $res = $db->checkdata($teldata, $data['con_telid']);
  233. if (!empty($qqdata['infocontent'])) $res = $db->checkdata($qqdata, $data['con_qqid']);
  234. if (!empty($skypedata['infocontent'])) $res = $db->checkdata($skypedata, $data['con_skypeid']);
  235. if (!empty($onlinesdata['infocontent'])) $res = $db->checkdata($onlinesdata, $data['con_onlinesid']);
  236. if (!empty($weixindata['infocontent'])) $res = $db->checkdata($weixindata, $data['con_weixinid']);
  237. if (!empty($emaildata['infocontent'])) $res = $db->checkdata($emaildata, $data['con_emailid']);
  238. /*}*/
  239. } else if ($type == 40) {//qtx 2018-12-12
  240. /*if(!empty($data['starttime']) && !empty($data['endtime'] && date('H:i:s', strtotime($data['starttime'])) == $data['starttime'] && date('H:i:s', strtotime($data['endtime'])) == $data['endtime'])){}*/
  241. //2018-12-26 anton liu 修改
  242. $data['extinfo'] = $data['starttime'] . '~' . $data['endtime'];
  243. unset($data['starttime']);
  244. unset($data['endtime']);
  245. $res = $db->updateInfo($data, $type);
  246. } else if ($type == 1018) //2019-01-16 级差域名检测 anton liu
  247. {
  248. $dom = explode('||', $data['infocontent']);
  249. foreach ($dom as $k => $v) {
  250. $isext = \App\Models\Nagent_detailed::checkDom($v, '');
  251. if ($isext) {
  252. return responseToJson(-1, $v . '已绑定专属代理');
  253. }
  254. }
  255. $res = $db->updateInfo($data, $type);
  256. } else {
  257. $res = $db->updateInfo($data, $type);
  258. }
  259. if ($type == 9501 || $type == 2003) {
  260. $webSocket = array();
  261. //聊天配置信息推送
  262. if ($type == 9501) { //服务器ip设置
  263. $word = $db->getInfo(2003);//敏感字
  264. $server = $data['infocontent'];
  265. $webSocket = [
  266. 'sign' => md5(time() . $data['extinfo']),
  267. 'time' => (int)time(),
  268. 'word_info' => $word['infocontent'],
  269. ];
  270. }
  271. if ($type == 2003) { //聊天敏感字符
  272. $wsport = $db->getInfo(9501);//websocket聊天服务器ip 端口设置
  273. $server = $wsport['infocontent'];
  274. $webSocket = [
  275. 'sign' => md5(time() . $wsport['extinfo']),
  276. 'time' => (int)time(),
  277. 'word_info' => $data['infocontent'],
  278. ];
  279. }
  280. // infocontent 值为ws:192.168.2.200:9501|wss:192.168.2.200:9501
  281. $server = !empty($server) ? explode('||', $server) : '';
  282. $server = !empty($server[0]) ? explode(':', $server[0]) : '';
  283. if (empty($server[1])) {
  284. return responseToJson(-9501, '聊天服务器IP地址错误:' . $server[1]);
  285. }
  286. $server = count($server) > 2 ? $server[1] . ':' . $server[2] : $server[1];
  287. $postUrls = $server . '/' . 'whiteList';
  288. $chs = curl_init();//初始化curl
  289. curl_setopt($chs, CURLOPT_URL, $postUrls);//抓取指定网页
  290. curl_setopt($chs, CURLOPT_HEADER, 0);//设置header
  291. curl_setopt($chs, CURLOPT_TIMEOUT, 15);
  292. curl_setopt($chs, CURLOPT_RETURNTRANSFER, 1);//要求结果为字符串且输出到屏幕上
  293. curl_setopt($chs, CURLOPT_POST, 1);//post提交方式
  294. curl_setopt($chs, CURLOPT_POSTFIELDS, $webSocket);
  295. curl_exec($chs);//运行curl
  296. if (curl_errno($chs) != 0) {
  297. $status = -9501;
  298. $msg = '--聊天服务器IP地址错误--';
  299. } else {
  300. $status = 1;
  301. $msg = '成功';
  302. }
  303. curl_close($chs);
  304. return responseToJson($status, $msg);
  305. }
  306. } else {
  307. $title = '会员注册设置';
  308. $db_reg = new \App\Models\Settings();
  309. $res = $db_reg->updateSet($data);
  310. }
  311. $log = array(
  312. session('adminInfo.admin_name'),
  313. $title,
  314. );
  315. OperationLog(session('adminInfo.admin_id'), 'editBaseSet', $log);
  316. return responseToJson($res);
  317. }
  318. //检测密码
  319. function checkPwd($password) {
  320. $admin_id = session('adminInfo.admin_id');
  321. $db = new \App\Models\System_user;
  322. $admin_info = $db->getAdminInfo($admin_id, 1);
  323. if (!VerPassword($password, $admin_info['encryption_2'], $admin_info['password_2'])) {
  324. return -7095167422;
  325. }
  326. return 1;
  327. }
  328. //访问接口
  329. function getUrl($url) {
  330. //初始化
  331. $curl = curl_init();
  332. //设置抓取的url
  333. curl_setopt($curl, CURLOPT_URL, $url);
  334. //设置头文件的信息作为数据流输出
  335. curl_setopt($curl, CURLOPT_HEADER, 1);
  336. //设置获取的信息以文件流的形式返回,而不是直接输出。
  337. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  338. //执行命令
  339. $data = curl_exec($curl);
  340. //关闭URL请求
  341. curl_close($curl);
  342. // 显示获得的数据
  343. // print_r($data);
  344. }
  345. function getPath() {
  346. $data = \App\Models\Setinfo::getPath();
  347. return $data;
  348. }
  349. //获取基础设置
  350. function getBaseSet() {
  351. $infoname = Request::has('infoname') ? Request::get('infoname') : '';
  352. $infocontent = Request::has('infocontent') ? Request::get('infocontent') : '';
  353. $status = Request::has('status') ? Request::get('status') : '';
  354. $where = array();
  355. if (!empty($infoname)) {
  356. $where[] = array('infoname', 'like', '%' . $infoname . '%');
  357. }
  358. if (!empty($infocontent)) {
  359. $where[] = array('infocontent', 'like', '%' . $infocontent . '%');
  360. }
  361. if (!empty($status)) {
  362. if ($status == 2) {
  363. $where[] = array('status', '=', '0');
  364. } else {
  365. $where[] = array('status', '=', $status);
  366. }
  367. }
  368. $db = new \App\Models\Setinfo();
  369. $data = $db->getAllSet($where);
  370. return \App\Lib\DataTable\DataTable::init()->toJson($data, count($data));
  371. }
  372. function Edit(Req $req) {
  373. $infotype = $req->infotype;
  374. if (empty($infotype)) {
  375. abort(404);
  376. }
  377. $db = new \App\Models\Setinfo();
  378. $arr = array(6, 16, 19, 9, 13); //含有设置框的infotype
  379. if (!$req->isMethod('post')) {
  380. $data = $db::where('infotype', $infotype)->first();
  381. if (!$data) {
  382. abort(404);
  383. }
  384. $data = $data->toArray();
  385. return view('admin.systemSet/edit', ['data' => $data, 'arr' => $arr]);
  386. } else {
  387. $model = $db::where('infotype', $infotype)->first();
  388. if (!empty($req->input('infocontent'))) {
  389. $model->infocontent = $req->input('infocontent');
  390. }
  391. $model->status = $req->input('status');
  392. $model->save();
  393. return responseToJson(1);
  394. }
  395. }
  396. //玩法简介
  397. function Playdesc() {
  398. $dt = \App\Lib\DataTable\DataTable::init();
  399. $dt->setDataSource('/admin/System/active');
  400. $dt->setLang('notice');
  401. $dt->addColsFields('id', array('width' => 170, 'fixed' => 'left'));
  402. $dt->addColsFields('name');
  403. // $dt->addColsFields('play_desc');
  404. $dt->addColsFields('table_name');
  405. $dt->setToolBar(array('view', 'edit'));
  406. return view('admin.systemSet/arictle', $dt->render());
  407. }
  408. /**
  409. * 公告显示
  410. */
  411. function Notice() {
  412. $db = new \App\Models\Setinfo();
  413. $data = $db->getNotice();
  414. return responseToJson($data);
  415. }
  416. /**
  417. * 弹框
  418. */
  419. function OutBox() {
  420. $db = new \App\Models\Setinfo();
  421. $data = $db->getBoxOut();
  422. return responseToJson($data);
  423. }
  424. /**
  425. * 客服QQ设置
  426. */
  427. function ServerQQ() {
  428. // $data=DB::table('setinfo')->where('infotype',14)->get();
  429. // dump($data->toArray());
  430. $db = new \App\Models\Setinfo();
  431. $data = $db->getQQnumber();
  432. return responseToJson($data);
  433. }
  434. /**
  435. * 代理设置
  436. */
  437. function Agent() {
  438. $db = new \App\Models\Setinfo();
  439. $data = $db->getAgentSet();
  440. return responseToJson($data);
  441. }
  442. function Fsnum() {
  443. $db = new \App\Models\Setinfo();
  444. $data = $db->getFsnumSet();
  445. return responseToJson($data);
  446. }
  447. /**
  448. * 平台维护
  449. */
  450. function PlatFrom() {
  451. $db = new \App\Models\Setinfo();
  452. $data = $db->getPlatSet();
  453. return responseToJson($data);
  454. }
  455. /**
  456. * 平台维护设置
  457. */
  458. function PlatFromSet() {
  459. }
  460. //虚拟游戏设置显示
  461. function Flaseprize() {
  462. $db = new \App\Models\Setinfo();
  463. $data = $db->getPrizeSet();
  464. return responseToJson($data);
  465. }
  466. //转账银行卡信息
  467. function BankInfo() {
  468. $db = new \App\Models\Setinfo();
  469. $data = $db->getBankInfo();
  470. return responseToJson($data);
  471. }
  472. //跑马灯公告
  473. function RunNotice() {
  474. $db = new \App\Models\Setinfo();
  475. $data = $db->getRunNotice();
  476. return responseToJson($data);
  477. }
  478. //注册设置信息
  479. function RegisterSet() {
  480. $db = new \App\Models\Settings();
  481. $data = $db->getSet();
  482. return responseToJson($data);
  483. }
  484. /**
  485. * 游戏玩法说明消息
  486. */
  487. function Active() {
  488. $list = Request::has('limit') ? Request::get('limit') : 10;
  489. $db = new \App\Models\GameType();
  490. $data = $db->getDescList($list);
  491. return \App\Lib\DataTable\DataTable::init()->toJson($data['data'], $data['total']);
  492. // return responseToJson($data);
  493. }
  494. /**
  495. * 系统菜单列表
  496. */
  497. function SystemMenu() {
  498. $db = new \App\Models\Menu();
  499. $data = $db->getMenuAll();
  500. return responseToJson($data);
  501. }
  502. /**
  503. * 菜单
  504. */
  505. function MenuList() {
  506. $data = config('menu');
  507. return responseToJson($data);
  508. }
  509. //获取网站设置
  510. function getWebTitle(Req $req) {
  511. $data = \App\Models\Setinfo::getWebSet();
  512. return responseToJson($data);
  513. }
  514. public function clearCache() {
  515. $db = new \App\Models\Setinfo();
  516. $rec = $db->where('infotype', '1912')->first();
  517. if (!$rec) {
  518. $ret = $db->addInfo(['infotype' => '1912','infoname'=>'缓存更新时间', 'infocontent' => date('Y-m-d H:i:s')]);
  519. } else {
  520. $ret = $db->where('infotype', '1912')->update(['infocontent' => date('Y-m-d H:i:s')]);
  521. }
  522. return responseToJson($ret ? 1 : -999, $ret ? '更新缓存时间成功' : '更新缓存时间失败');
  523. }
  524. }