注意:行数仅供参考,为了快速找到修改的地方
1、文件地址:app\controller\admin\v1\setting\SystemGroupData.php行数:308
/** * 获取用户协议内容 * @return mixed */ public function getUserAgreement() { /** @var CacheServices $cache */ $cache = app()->make(CacheServices::class); $content = $cache->getDbCache('user_agreement', ''); return $this->success(compact('content')); } /** * 设置用户协议内容 * @return mixed */ public function setUserAgreement() { $content = $this->request->post('content'); /** @var CacheServices $cache */ $cache = app()->make(CacheServices::class); $cache->setDbCache('user_agreement', $content); return $this->success('设置成功'); }
2、文件地址:app\controller\api\v1\PublicController.php
行数:18
use app\services\other\CacheServices;
行数:417
/** * 获取用户协议内容 * @return mixed */ public function getUserAgreement() { /** @var CacheServices $cache */ $cache = app()->make(CacheServices::class); $content = $cache->getDbCache('user_agreement', ''); return app('json')->success(compact('content')); }
3、route\admin.php
行数:1037
//获取隐私协议 Route::get('get_user_agreement', 'v1.setting.SystemGroupData/getUserAgreement'); //设置隐私协议 Route::post('set_user_agreement', 'v1.setting.SystemGroupData/setUserAgreement');
4、route\api.php
行数:292
//获取用户协议 Route::get('user_agreement', 'v1.PublicController/getUserAgreement')->name('getUserAgreement');
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}