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.
29 lines
572 B
29 lines
572 B
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: travis
|
|
* Date: 2019/12/12
|
|
* Time: 15:59
|
|
*/
|
|
|
|
namespace api\controllers;
|
|
|
|
|
|
use api\logic\WxPaymentLogic;
|
|
|
|
class WxPaymentController extends CommonController
|
|
{
|
|
public $modelClass = 'backend\modules\shop\models\ars\Order';
|
|
public $className = 'api\logic\WxPaymentLogic';
|
|
|
|
|
|
public function actionWeb()
|
|
{
|
|
return $this->object->wxPayment(WxPaymentLogic::PAY_TYPE_WEB);
|
|
}
|
|
|
|
public function actionMiniProgram()
|
|
{
|
|
return $this->object->wxPayment(WxPaymentLogic::PAY_TYPE_MINI_PROGRAM);
|
|
}
|
|
}
|