AlipayThirdMerchantController.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers;
  8. use app\modules\admin\models\AlipayThirdMerchantForm;
  9. class AlipayThirdMerchantController extends BaseController
  10. {
  11. /**
  12. * 查询授权状态
  13. */
  14. public function actionGetStatus()
  15. {
  16. $form = new AlipayThirdMerchantForm();
  17. $form->ali_mini_id = get_params('id');
  18. $res = $form->getStatus();
  19. return $this->asJson($res);
  20. }
  21. /**
  22. * 开始签约
  23. */
  24. public function actionMerchantPay()
  25. {
  26. $form = new AlipayThirdMerchantForm();
  27. $form->ali_mini_id = post_params('id');
  28. $form->params_info = post_params('params_data');
  29. $form->app_type = post_params('app_type', 0);
  30. $res = $form->getMerchantPay();
  31. return $this->asJson($res);
  32. }
  33. /**
  34. * 获取信息
  35. */
  36. public function actionGetInfo()
  37. {
  38. $form = new AlipayThirdMerchantForm();
  39. $form->ali_mini_id = get_params('id');
  40. //获取审核信息
  41. $form->openAgentOrderStatus();
  42. $res = $form->getAppInfo();
  43. return $this->asJson($res);
  44. }
  45. }