Skip to content

Commit

Permalink
fix: service
Browse files Browse the repository at this point in the history
  • Loading branch information
zixuan1986 committed Aug 18, 2023
1 parent ac10f42 commit c958988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/service/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ function deleteBody(id) {
* accessUserId {int} 出售人的id 【可以从体型列表中获取 user_id】
*/
function payBody(params) {
return $pay({ mute: true }).post(
`/api/buy-licence/article/${params.postType}/${params.PostId}/pay/${params.priceType}/${params.priceCount}/from/${params.payUserId}/to/${params.accessUserId}`, {}
);
const { postType, PostId, priceType, priceCount, payUserId, accessUserId } = params
return $pay({ mute: true }).post(`/api/buy-licence/article/${postType}/${PostId}/pay/${priceType}/${priceCount}/from/${payUserId}/to/${accessUserId}`);
}
// 循环获取支付结果
function loopPayStatus(id) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/body/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export default {
.then(() => {
let res = this.post;
let params = {
postType: "body",
postType: "pvxbody",
PostId: res.id,
priceType: res.price_type,
priceCount: res.price_count,
Expand Down

0 comments on commit c958988

Please sign in to comment.