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.
 
 
 

43 lines
935 B

<?php
/**
* Created by PhpStorm.
* User: travis
* Date: 2019/12/12
* Time: 15:59
*/
namespace api\controllers;
use yii\web\Response;
use Yii;
use yii\web\BadRequestHttpException;
class WxPaymentController extends CommonController
{
public $modelClass = 'backend\modules\shop\models\ars\Order';
public $className = 'api\logic\WxPaymentLogic';
public function actions()
{
$action = parent::actions();
unset($action['index']);
unset($action['update']);
unset($action['view']);
unset($action['delete']);
return $action;
}
/**
* @return array|bool
* @throws BadRequestHttpException
* @throws \yii\base\InvalidConfigException
* @throws \yii\httpclient\Exception
* 异步回调
*/
public function actionNotify()
{
Yii::$app->response->format = Response::FORMAT_XML;
return $this->object->notify();
}
}