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; } }