Commit 92c4ef16 authored by jianghaiming's avatar jianghaiming

update:set

parent 401790de
<?php
namespace App\Services\common;
use App\Models\goods\mysql\GoodsSkuSubShop;
use App\Models\shop\mysql\Shop;
use App\Models\shop\mysql\SubShop;
use Api\PhpUtils\Validate\Validate;
use Api\PhpServices\Idgen\Idgen;
// use Validate\ShopValidate;
use App\Exception\custom\ShopException;
use Api\PhpServices\Sensitive\Sensitive;
use App\Exception\custom\InterfaceException;
use Api\PhpUtils\Http\Request;
use Helpers\Aes;
use Api\PhpServices\Ksy\Ksyun;
use App\Exception\BaseException;
class CommonService
{
......@@ -34,6 +24,12 @@ class CommonService
return [];
}
/**
*
* @param $params
* @return array|mixed
* @throws InterfaceException
*/
public static function activateDeliverer($params)
{
$url = config('interface','order.deliverer.activate_deliverer');
......@@ -44,7 +40,7 @@ class CommonService
if ($res['code'] == 0 && isset($res['response'])) {
return !empty($res['response']['result']) ? $res['response']['result'] : [];
}
return [];
throw new BaseException(['code' => $res['code'], 'msg' => $res['reason']]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment