| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace shop\controllers;
- use biz\purchase\classes\PurchaseClearClass;
- use Yii;
- use common\components\util;
- class PurchaseClearController extends BaseController
- {
- //生成结算订单 shish 2021.1.26
- public function actionCreateOrder()
- {
- $post = Yii::$app->request->post();
- $ids = $post['id'];
- $data['merchantId'] = $this->sjId;
- $data['id'] = $ids;
- $respond = PurchaseClearClass::addClear($data);
- util::success($respond);
- }
- public function actionWxPay()
- {
- $string = '{
- "code": 1,
- "msg": "操作成功",
- "data": {
- "appId": "wx21b7c3ef12082099",
- "nonceStr": "i7f1e9z6ls42f3342m4j2bngxj6rq08e",
- "package": "prepay_id=wx042304351179687ee46ee32d8ecf420000",
- "signType": "MD5",
- "timeStamp": "1612451097",
- "paySign": "39FD249CD03B24FDA1755493F09D7C2E"
- }
- }';
- echo $string;
- }
-
- }
|