You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
572 B

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: travis
  5. * Date: 2019/12/12
  6. * Time: 15:59
  7. */
  8. namespace api\controllers;
  9. use api\logic\WxPaymentLogic;
  10. class WxPaymentController extends CommonController
  11. {
  12. public $modelClass = 'backend\modules\shop\models\ars\Order';
  13. public $className = 'api\logic\WxPaymentLogic';
  14. public function actionWeb()
  15. {
  16. return $this->object->wxPayment(WxPaymentLogic::PAY_TYPE_WEB);
  17. }
  18. public function actionMiniProgram()
  19. {
  20. return $this->object->wxPayment(WxPaymentLogic::PAY_TYPE_MINI_PROGRAM);
  21. }
  22. }