diff --git a/Server/application/common/controller/PaymentService.php b/Server/application/common/controller/PaymentService.php index 3de0f979..e6fead6b 100644 --- a/Server/application/common/controller/PaymentService.php +++ b/Server/application/common/controller/PaymentService.php @@ -241,7 +241,7 @@ class PaymentService case 1: // 处理购买算力 $token = TokensCompany::where(['companyId' => $order->companyId])->find(); - $goodsSpecs = json_decode($token->goodsSpecs,true); + $goodsSpecs = json_decode($order->goodsSpecs,true); if (!empty($token)){ $token->tokens = $token->tokens + $goodsSpecs['tokens']; $token->updateTime = time();