Commit 241d2ecd by 杨树贤

修复

parent 3f2dc482
......@@ -246,6 +246,10 @@ class SupplierController extends Controller
$this->data['brand_init_value'] = (new StandardBrandService())->getBrandInitValue($supplier['main_brands']);
$this->data['exclude_brand_init_value'] = (new StandardBrandService())->getBrandInitValue($supplier['main_brands']);
$this->data['agency_brand_init_value'] = (new StandardBrandService())->getBrandInitValue($supplier['agency_brands']);
$ruleService = new RuleService();
$this->data['rule'] = $ruleService->getSupplierRule($supplier['supplier_code']);
return $this->view('编辑供应商');
}
......
......@@ -16,7 +16,8 @@ class RuleService
public function getSupplierRule($supplierCode)
{
try {
$rule = \curl(\config('website.CubeUrl').'/open/rule/getSupplierFeeRule?supplier_id=17&supplier_code='.$supplierCode);
$url = config('website.CubeUrl').'/open/rule/getSupplierFeeRule?supplier_id=17&supplier_code='.$supplierCode;
$rule = \curl($url);
$rule = json_decode($rule, true);
$rule = array_get($rule, 'data', []);
} catch (\Throwable $th) {
......
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 sign in to comment