ConfigController.php 961 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wangzhiqiang
  5. * Date: 2019/4/24
  6. * Time: 9:36
  7. */
  8. namespace App\Http\Controllers;
  9. use App\Traits\CommunityTrait;
  10. class ConfigController extends Controller
  11. {
  12. use CommunityTrait;
  13. /**
  14. * Create a new controller instance.
  15. *
  16. * @return void
  17. */
  18. public function __construct()
  19. {
  20. //
  21. }
  22. public function index()
  23. {
  24. $data = [
  25. //商品类型
  26. 'order_expired_time' => config('customer.order_expired_time'),
  27. 'virus_url' => config('customer.VIRUS_URL'),
  28. 'virus_app_id' => config('customer.VIRUS_APP_ID'),
  29. 'virus_app_secret' => config('customer.VIRUS_APP_SECRET'),
  30. 'virus' => $this->getAllBehavior(),
  31. 'find_friend_img' => config('customer.find_friend_img'),
  32. 'suggest_img' => config('customer.suggest_img'),
  33. ];
  34. return $this->jsonSuccess($data, '成功');
  35. }
  36. }