|
@@ -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);
|