|
@@ -636,9 +636,11 @@ class SettleService extends BaseService
|
|
|
$this->error = '订单结算完成';
|
|
$this->error = '订单结算完成';
|
|
|
RedisService::clear("{$cacheKey}lock");
|
|
RedisService::clear("{$cacheKey}lock");
|
|
|
RedisService::set("{$cacheKey}result", $info, 3600);
|
|
RedisService::set("{$cacheKey}result", $info, 3600);
|
|
|
- return ['id' => $orderId, 'user_id' => $orderUserId, 'logs' => $logs, 'commission' => $commission];
|
|
|
|
|
|
|
+ $result = ['id' => $orderId, 'user_id' => $orderUserId, 'logs' => $logs, 'commission' => $commission];
|
|
|
|
|
+ RedisService::set("caches:settles:{$orderId}_success", $result, 7200);
|
|
|
|
|
+ return $result;
|
|
|
} catch (\Exception $exception){
|
|
} catch (\Exception $exception){
|
|
|
- RedisService::set("caches:settles:{$orderId}", ['error'=>$exception->getMessage(),'trace'=>$exception->getTrace()], 7200);
|
|
|
|
|
|
|
+ RedisService::set("caches:settles:{$orderId}_error", ['error'=>$exception->getMessage(),'trace'=>$exception->getTrace()], 7200);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|