ExampleController.php 1004B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Aliyun\Core\Config;
  4. use App\Models\Department;
  5. use App\Models\PkRoom;
  6. use App\Models\Question;
  7. use App\Models\User;
  8. use App\Services\BrainstormingService;
  9. use App\Services\AccessToken;
  10. use App\Services\CmbcService;
  11. use App\Services\DepartmentService;
  12. use App\Services\OnlineLimitService;
  13. use App\Services\PkService;
  14. use App\Services\PushMessageService;
  15. use App\Services\RandChinaName;
  16. use App\Services\SmsService;
  17. use App\Services\TopService;
  18. use App\Services\UserService;
  19. use Illuminate\Http\Request;
  20. use Illuminate\Support\Facades\DB;
  21. use Illuminate\Support\Facades\Redis;
  22. use App\Services\GameTimeService;
  23. class ExampleController extends Controller
  24. {
  25. /**
  26. * Create a new controller instance.
  27. *
  28. * @return void
  29. */
  30. public function __construct()
  31. {
  32. //
  33. }
  34. public function baseIndex(Request $request){
  35. return json_encode(BrainstormingService::getInstance()->get($request->get("activity_id")));
  36. }
  37. }