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
ad1a96d4
authored
Jul 22, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
修复冲突
parents
9af5b404
178ea522
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
app/Http/Services/AdminUserService.php
app/Http/routes.php
app/Http/Services/AdminUserService.php
View file @
ad1a96d4
...
...
@@ -43,6 +43,16 @@ class AdminUserService
return
$codeId
;
}
public
function
getAdminIdByUserName
(
$userName
)
{
return
UserInfoModel
::
where
(
'name'
,
$userName
)
->
value
(
'userId'
);
}
public
function
getAdminIdByEmail
(
$email
)
{
return
UserInfoModel
::
where
(
'email'
,
$email
)
->
value
(
'userId'
);
}
public
function
getCodeIdsByUserIds
(
$userIds
)
{
$intraCodeModel
=
new
IntracodeModel
();
...
...
app/Http/routes.php
View file @
ad1a96d4
...
...
@@ -62,5 +62,4 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
(
new
\App\Http\Services\DataService
())
->
exportSupplierPurchaseChannelUser
(
'admin'
);
});
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