ConfigController.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. $reportCategory = [
  25. 1 => '搬运抄袭',
  26. 0 => '广告内容',
  27. 2 => '不友善内容',
  28. 3 => '造谣,伪科学',
  29. 4 => '虚假互动数据',
  30. 5 => '色情低俗',
  31. 6 => '违法违规',
  32. 7 => '其它',
  33. ];
  34. $data = [
  35. //商品类型
  36. 'order_expired_time' => config('customer.order_expired_time'),
  37. 'virus_url' => config('customer.VIRUS_URL'),
  38. 'virus_app_id' => config('customer.VIRUS_APP_ID'),
  39. 'virus_app_secret' => config('customer.VIRUS_APP_SECRET'),
  40. 'virus' => $this->getAllBehavior(),
  41. 'find_friend_img' => config('customer.find_friend_img'),
  42. 'suggest_img' => config('customer.suggest_img'),
  43. 'share_post_bean' => (int) config('customer.share_post_bean'),
  44. 'share_invite_bean' => (int) config('customer.share_invite_bean'),
  45. 'report_category' => $reportCategory,
  46. ];
  47. return $this->jsonSuccess($data, '成功');
  48. }
  49. }