Explorar o código

从系统江都

Wubing hai 2 días
pai
achega
0f9fe1ed8c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      http/charge.js

+ 2 - 2
http/charge.js

@@ -786,7 +786,7 @@ proto.deductUsdtAsync = P.coroutine(function* (query, method, res){var response
 			SGJUserTongji = SGJUserTongjis[0]
 			console.warn("SGJUserTongji:",SGJUserTongji)
 			//SGJUserTongji.usdt = afterusdt
-			SGJUserTongji.nnwinlose = (Number(SGJUserTongji.nnwinlose) -Number(usdt_amount)).toFixed(2)//下注
+			SGJUserTongji.nnwinlose = (Number(SGJUserTongji.nnwinlose) +Number(usdt_amount)).toFixed(2)//下注
 
 			yield SGJUserTongji.saveAsync()
 		}
@@ -908,7 +908,7 @@ proto.addUsdtAsync = P.coroutine(function* (query, method, res){var response = {
 			SGJUserTongji = SGJUserTongjis[0]
 			console.warn("SGJUserTongji:",SGJUserTongji)
 			//SGJUserTongji.usdt = afterusdt
-			SGJUserTongji.nnwinlose = (Number(SGJUserTongji.nnwinlose) +Number(usdt_amount)).toFixed(2)//下注
+			SGJUserTongji.nnwinlose = (Number(SGJUserTongji.nnwinlose) -Number(usdt_amount)).toFixed(2)//下注
 			SGJUserTongji.nnflow = (Number(SGJUserTongji.nnflow) +Number(nnflow)).toFixed(2)//下注
 
 			yield SGJUserTongji.saveAsync()