BetaController.php 661 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Http\Controllers\User;
  3. use App\Http\Controllers\Miniprogram\Auth;
  4. use Illuminate\Http\Request;
  5. use App\Http\Controllers\Controller;
  6. use Illuminate\Support\Facades\Redis;
  7. /**
  8. * 测试人员状态
  9. * Class BetaController
  10. * @package App\Http\Controllers\User
  11. */
  12. class BetaController extends Controller
  13. {
  14. // 走心一画
  15. public function paint()
  16. {
  17. $uid = Auth::auth();
  18. $key = "{beta:paint}";
  19. $bool = Redis::Sismember($key, $uid);
  20. return response([
  21. 'code' => 200,
  22. 'message' => 'OK',
  23. 'data' => [
  24. 'result' => 1,
  25. ]
  26. ]);
  27. }
  28. }