VipController.php 1016 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Http\Controllers\PartnerPay;
  3. use App\Http\Controllers\Controller;
  4. use App\Http\Controllers\Core\Auth;
  5. use App\Services\User\VipService;
  6. /**
  7. * Class VipController
  8. * @package App\Http\Controllers\PartnerPay
  9. */
  10. class VipController extends Controller
  11. {
  12. /**
  13. * 内测开通超级会员通道
  14. * @return array
  15. * @throws \App\Exceptions\AlertException
  16. */
  17. public function beSupervip()
  18. {
  19. $uid = Auth::auth();
  20. $vs = new VipService();
  21. $vs->beSuperVip($uid);
  22. return array(
  23. 'code' => 200,
  24. 'message' => 'success'
  25. );
  26. }
  27. /**
  28. * 创建卡片领取超级会员
  29. * @return array
  30. * @throws \App\Exceptions\AlertException
  31. */
  32. public function sendSuperVipByStorePartner()
  33. {
  34. $uid = Auth::auth();
  35. $vs = new VipService();
  36. $vs->sendSuperVipByStorePartner($uid);
  37. return array(
  38. 'code' => 200,
  39. 'message' => 'success'
  40. );
  41. }
  42. }