|
|
@ -5,6 +5,7 @@ namespace App\JsonRpc; |
|
|
use App\Commons\Log; |
|
|
use App\Commons\Log; |
|
|
use App\Constants\ErrorCode; |
|
|
use App\Constants\ErrorCode; |
|
|
use App\Service\SeparateAccountsServiceInterface; |
|
|
use App\Service\SeparateAccountsServiceInterface; |
|
|
|
|
|
use App\Service\v3\SfExpress; |
|
|
use Hyperf\DbConnection\Db; |
|
|
use Hyperf\DbConnection\Db; |
|
|
use Hyperf\RpcServer\Annotation\RpcService; |
|
|
use Hyperf\RpcServer\Annotation\RpcService; |
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
@ -76,6 +77,11 @@ class OrderService implements OrderServiceInterface |
|
|
"message" => '' |
|
|
"message" => '' |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
# 取消顺丰配送
|
|
|
|
|
|
go(function () use ($global_order_id) { |
|
|
|
|
|
SfExpress::getInstance()->cancelOrder(['order_id' => $global_order_id]); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
$res = $this->orderService->onlineRefund($global_order_id); |
|
|
$res = $this->orderService->onlineRefund($global_order_id); |
|
|
if($res['code'] > 0){ |
|
|
if($res['code'] > 0){ |
|
|
$result['result'] = $res; |
|
|
$result['result'] = $res; |
|
|
|