Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
241d2ecd
authored
Apr 02, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
3f2dc482
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
app/Http/Controllers/SupplierController.php
app/Http/Services/RuleService.php
app/Http/Controllers/SupplierController.php
View file @
241d2ecd
...
...
@@ -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
(
'编辑供应商'
);
}
...
...
app/Http/Services/RuleService.php
View file @
241d2ecd
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment