lrf402788946 4 年之前
父节点
当前提交
3913eaf290
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/service/wxpay.js

+ 1 - 0
app/service/wxpay.js

@@ -32,6 +32,7 @@ class WxpayService extends CrudService {
   }
 
   async cash({ id, money, points }) {
+    money = parseInt(money);
     const token = await this.redis.get(id);
     if (!token) throw new BusinessError(ErrorCode.SERVICE_FAULT, '未找到用户的openid,请重新登陆小程序!');
     const { openid } = JSON.parse(token);