Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0b304b7b
authored
Nov 30, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认密码改为123456
parent
1dcd0214
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/Admin/Controllers/PharmacyController.php
+1
-1
app/Console/Kernel.php
+1
-1
No files found.
app/Admin/Controllers/PharmacyController.php
View file @
0b304b7b
...
@@ -249,7 +249,7 @@ protected function form()
...
@@ -249,7 +249,7 @@ protected function form()
$admin
=
new
Administrator
();
$admin
=
new
Administrator
();
$admin
->
username
=
$mobile
;
// 药店手机号作为管理员账号
$admin
->
username
=
$mobile
;
// 药店手机号作为管理员账号
$admin
->
name
=
$name
;
// 药店名称当做用户的姓名
$admin
->
name
=
$name
;
// 药店名称当做用户的姓名
$admin
->
password
=
bcrypt
(
$mobile
);
// 设置管理员密码,默认同手机号
$admin
->
password
=
bcrypt
(
'123456'
);
// 设置药店管理员默认密码
$admin
->
pharmacy_id
=
$pharmacyId
;
// 药店ID
$admin
->
pharmacy_id
=
$pharmacyId
;
// 药店ID
$admin
->
save
();
// 保存新管理员
$admin
->
save
();
// 保存新管理员
...
...
app/Console/Kernel.php
View file @
0b304b7b
...
@@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel
...
@@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel
protected
function
schedule
(
Schedule
$schedule
)
:
void
protected
function
schedule
(
Schedule
$schedule
)
:
void
{
{
// $schedule->command('inspire')->hourly();
// $schedule->command('inspire')->hourly();
#
$schedule->command('mohe:prescription')->everyMinute();
//
$schedule->command('mohe:prescription')->everyMinute();
}
}
/**
/**
...
...
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