添加文章地址配置
parent
0bb4f028cb
commit
0d521cdaec
|
|
@ -18,6 +18,20 @@ use Throwable;
|
||||||
|
|
||||||
class ArticleController extends Controller
|
class ArticleController extends Controller
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 指定文章配置:关于我们、用户推广协议、隐私协议
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function config(Request $request)
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'about_us'=>config('settings.article_about_us', ''),
|
||||||
|
'user_promotion_agreement'=> config('settings.article_user_promotion_agreement', ''),
|
||||||
|
'user_hide_agreement' => config('settings.article_user_hide_agreement', ),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,8 @@ Route::group([
|
||||||
Route::get('product/products/{product}', [ProductSkuController::class, 'show']);
|
Route::get('product/products/{product}', [ProductSkuController::class, 'show']);
|
||||||
//文章列表
|
//文章列表
|
||||||
Route::get('articles', [ArticleController::class, 'index']);
|
Route::get('articles', [ArticleController::class, 'index']);
|
||||||
|
//指定文章配置
|
||||||
|
Route::get('article-config', [ArticleController::class, 'config']);
|
||||||
|
|
||||||
Route::middleware(['auth:api'])->group(function () {
|
Route::middleware(['auth:api'])->group(function () {
|
||||||
// 我的信息
|
// 我的信息
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,10 @@ return [
|
||||||
'article_help'=>1,
|
'article_help'=>1,
|
||||||
'article_agreement'=>2,
|
'article_agreement'=>2,
|
||||||
'article_health'=>3,
|
'article_health'=>3,
|
||||||
|
// 指定内容链接:关于我们,服务协议,隐私协议
|
||||||
|
'article_about_us'=>'',
|
||||||
|
'article_user_promotion_agreement'=>'',
|
||||||
|
'article_user_hide_agreement'=>'',
|
||||||
|
|
||||||
// 快递100是否开启
|
// 快递100是否开启
|
||||||
'kuaidi100_is_use' => true,
|
'kuaidi100_is_use' => true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue