| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace pt\controllers;
- use bizHd\saas\services\RenewService;
- use common\components\util;
- use Yii;
- class RenewController extends BaseController
- {
- public function actionList()
- {
- $where = [];
- $list = RenewService::getRenewList($where);
- util::success($list);
- }
- //微信支付购买 ssh 2020.1.11
- public function actionWxPay()
- {
- $id = Yii::$app->request->get('id');
- $string = '{
- "code": 1,
- "msg": "操作成功",
- "data": {
- "appId": "wx193341a4a80f6ea3",
- "nonceStr": "tfunt38g0s8jcxo9g09ep3i65t9bwh1c",
- "package": "prepay_id=wx11163027396857ab83a8c8431935656300",
- "signType": "MD5",
- "timeStamp": "1578731428",
- "paySign": "B6197F9059697DC799273F36C7A17C43"
- }
- }';
- $r = json_decode($string, true);
- util::success($r['data']);
- }
- }
|