lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
3913eaf290
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);