26 lines
631 B
PHP
26 lines
631 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* Author:
|
|
* Date: 2018/5/18
|
|
* Time: 下午17:28
|
|
*/
|
|
|
|
namespace app\backend\modules\enoughReduce\controllers;
|
|
|
|
use app\common\components\BaseController;
|
|
use app\common\helpers\Url;
|
|
|
|
class IndexController extends BaseController
|
|
{
|
|
public function index()
|
|
{
|
|
$setting = \Setting::getByGroup('enoughReduce');
|
|
if (!empty($setting) && !isset($setting['freeFreight']['amount_type'])) {
|
|
$setting['freeFreight']['amount_type'] = 0;
|
|
}
|
|
return view('goods.enoughReduce.index', [
|
|
'setting' => json_encode($setting),
|
|
])->render();
|
|
}
|
|
} |