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
bc120047
authored
Nov 04, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
caf0f166
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
app/Http/Services/SupplierAccountService.php
app/Http/Services/SupplierAuditService.php
app/Http/Services/SupplierAccountService.php
View file @
bc120047
...
...
@@ -34,10 +34,12 @@ class SupplierAccountService
{
return
true
;
//还要去推送给搜索做品牌初始化任务
$conn
=
new
AMQPStreamConnection
(
config
(
'database.connections.rabbitmq.host'
),
$conn
=
new
AMQPStreamConnection
(
config
(
'database.connections.rabbitmq.host'
),
config
(
'database.connections.rabbitmq.port'
),
config
(
'database.connections.rabbitmq.login'
),
config
(
'database.connections.rabbitmq.password'
));
config
(
'database.connections.rabbitmq.password'
)
);
$channel
=
$conn
->
channel
();
$channel
->
queue_declare
(
'yunxin_supplier_add'
,
false
,
true
,
false
,
false
);
$time
=
strtotime
(
"2021-01-01 00:00:00"
);
...
...
@@ -45,8 +47,10 @@ class SupplierAccountService
'canal'
=>
$supplierCode
,
'update_time'
=>
$time
]);
$msg
=
new
AMQPMessage
(
$body
,
[
'content_type'
=>
'text/plain'
,
'delivery_mode'
=>
AMQPMessage
::
DELIVERY_MODE_PERSISTENT
]);
$msg
=
new
AMQPMessage
(
$body
,
[
'content_type'
=>
'text/plain'
,
'delivery_mode'
=>
AMQPMessage
::
DELIVERY_MODE_PERSISTENT
]
);
$result
=
$channel
->
basic_publish
(
$msg
,
''
,
'yunxin_supplier_add'
);
$channel
->
close
();
$conn
->
close
();
...
...
@@ -82,7 +86,7 @@ class SupplierAccountService
if
(
strpos
(
$supplier
->
stockup_type
,
(
string
)
SupplierChannelModel
::
SUPPLIER_STOCKUP_TYPE_XINLIAN
)
===
false
)
{
return
;
}
$supplierContact
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplierId
)
->
first
()
->
toArray
();
//新建账号
SupplierAccountModel
::
insert
([
'supplier_id'
=>
$supplierId
,
...
...
@@ -92,6 +96,9 @@ class SupplierAccountService
'password_raw'
=>
'123456'
,
'password'
=>
Hash
::
make
(
'123456'
),
'create_time'
=>
time
(),
'mobile'
=>
array_get
(
$supplierContact
,
'supplier_mobile'
,
''
),
'email'
=>
array_get
(
$supplierContact
,
'supplier_email'
,
''
),
'contacts_name'
=>
array_get
(
$supplierContact
,
'supplier_consignee'
,
''
),
]);
return
true
;
}
...
...
app/Http/Services/SupplierAuditService.php
View file @
bc120047
...
...
@@ -186,7 +186,7 @@ class SupplierAuditService
// 先获取审核流节点数据
$flowInfo
=
AuditCenterService
::
getAuditFlowInfo
(
AuditCenterService
::
TYPE_SUPPLIER_AUDIT
,
request
()
->
user
->
userId
,
request
()
->
user
->
userId
==
1000
?
1629
:
request
()
->
user
->
userId
,
null
// 供应商没有公司ID概念,传null
);
...
...
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