lrf402788946 4 years ago
parent
commit
3913eaf290
1 changed files with 1 additions and 0 deletions
  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);