UserController.php 531 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Http\Controllers\Log;
  3. use App\Http\Controllers\Controller;
  4. use App\Http\Controllers\Core\Auth;
  5. use Illuminate\Support\Facades\Redis;
  6. class UserController extends Controller
  7. {
  8. /**
  9. * 标记二维码来源的用户
  10. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  11. */
  12. public function tagFromQrcode()
  13. {
  14. $uid = Auth::auth();
  15. Redis::sadd("user:tag:from:qrcode", $uid);
  16. return array(
  17. 'code' => 200,
  18. 'message' => 'success'
  19. );
  20. }
  21. }