IndexController.php 661 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2018/5/18
  6. * Time: 下午17:28
  7. */
  8. namespace app\backend\modules\enoughReduce\controllers;
  9. use app\common\components\BaseController;
  10. use app\common\helpers\Url;
  11. class IndexController extends BaseController
  12. {
  13. public function index()
  14. {
  15. $setting = \Setting::getByGroup('enoughReduce');
  16. if (!empty($setting) && !isset($setting['freeFreight']['amount_type'])) {
  17. $setting['freeFreight']['amount_type'] = 0;
  18. }
  19. return view('goods.enoughReduce.index', [
  20. 'setting' => json_encode($setting),
  21. ])->render();
  22. }
  23. }