| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace addons\HuijuBill\api\modules\v1\controllers;
- use addons\HuijuBill\common\global_func\Payment;
- use Yii;
- use yii\web\Controller;
- /**
- * 支付控制器
- *
- * Class PayController
- * @package addons\HuijuBill\api\modules\v1\controllers
- */
- class PayController extends Controller
- {
- public $modelClass = '';
- /**
- * 不用进行登录验证的方法
- *
- * 例如: ['index', 'update', 'create', 'view', 'delete']
- * 默认全部需要验证
- *
- * @var array
- */
- protected $authOptional = ['index'];
- /**
- * 首页
- *
- * @return string
- */
- public function actionIndex()
- {
- $order_no = $this->request->getQueryParam('order_no');
- echo Payment::getAlipayHtml($order_no);
- }
- }
|