From ed97ca9db7f646064bfa8f72dfed4169c3745e4d Mon Sep 17 00:00:00 2001 From: weigang Date: Sun, 27 Sep 2020 18:37:41 +0800 Subject: [PATCH] no message --- app/JsonRpc/OrdersService.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/JsonRpc/OrdersService.php b/app/JsonRpc/OrdersService.php index c0329c0..359a007 100644 --- a/app/JsonRpc/OrdersService.php +++ b/app/JsonRpc/OrdersService.php @@ -19,7 +19,6 @@ use Hyperf\DbConnection\Db; use Hyperf\Guzzle\CoroutineHandler; use Hyperf\RpcServer\Annotation\RpcService; use Hyperf\Di\Annotation\Inject; -use App\JsonRpc\OrdersServiceInterface; /** * @RpcService(name="OrdersService", protocol="jsonrpc-http", server="jsonrpc-http", publishTo="") @@ -51,6 +50,12 @@ class OrdersService implements OrdersServiceInterface */ protected $financialRecordService; + /** + * @Inject + * @var \App\Service\v3\Interfaces\BadgeServiceInterface + */ + protected $badgeService; + /** * 订单完成 * @param $global_order_id @@ -314,7 +319,7 @@ class OrdersService implements OrdersServiceInterface Db::commit(); // 记录badge - $orderChildIds = array_values(array_column($orderChildren, 'store_id')); + $orderChildIds = array_values(array_column($orderChildren->toArray(), 'store_id')); $this->badgeService->doByOrder($orderMain->user_id, $orderChildIds, $orderMain->global_order_id, OrderState::REFUNDED); return [