Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
stock_new
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
stock_new
Commits
adff3f4e
Commit
adff3f4e
authored
Jun 25, 2024
by
twj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整提现规则
parent
0f799b8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
application/member/home/Profile.php
application/member/home/Profile.php
+1
-1
application/money/model/EsopPlan.php
application/money/model/EsopPlan.php
+1
-1
No files found.
application/member/home/Profile.php
View file @
adff3f4e
...
@@ -333,7 +333,7 @@ class Profile extends Common
...
@@ -333,7 +333,7 @@ class Profile extends Common
// 获取表单上传文件 例如上传了001.jpg
// 获取表单上传文件 例如上传了001.jpg
$file
=
request
()
->
file
(
$file_uploads
);
$file
=
request
()
->
file
(
$file_uploads
);
// 移动到框架应用根目录/public/uploads/ images目录下
// 移动到框架应用根目录/public/uploads/ images目录下
$info
=
$file
->
validate
([
'size'
=>
2097152
,
'ext'
=>
'jpg,png,gif'
])
->
move
(
ROOT_PATH
.
'public'
.
DS
.
'uploads'
.
DS
.
'images'
);
$info
=
$file
->
validate
([
'size'
=>
2097152
,
'ext'
=>
'jpg,png,gif
,jpeg
'
])
->
move
(
ROOT_PATH
.
'public'
.
DS
.
'uploads'
.
DS
.
'images'
);
if
(
$info
){
if
(
$info
){
// 成功上传后 获取上传信息
// 成功上传后 获取上传信息
...
...
application/money/model/EsopPlan.php
View file @
adff3f4e
...
@@ -68,7 +68,7 @@ class EsopPlan extends Model
...
@@ -68,7 +68,7 @@ class EsopPlan extends Model
$data
[
'mid'
]
=
$parameter
[
'mid'
];
$data
[
'mid'
]
=
$parameter
[
'mid'
];
$data
[
'money'
]
=
$parameter
[
'money'
]
*
100
;
$data
[
'money'
]
=
$parameter
[
'money'
]
*
100
;
$data
[
'fee'
]
=
$parameter
[
'money'
]
*
config
(
'withdraw_rate'
);
$data
[
'fee'
]
=
$parameter
[
'money'
]
*
config
(
'withdraw_rate'
);
$data
[
'
stock_id'
]
=
$parameter
[
'stock
_id'
];
$data
[
'
esop_plan_id'
]
=
$parameter
[
'esop_plan
_id'
];
$data
[
'order_no'
]
=
'estx'
.
generate_rand_str
(
10
,
3
);
$data
[
'order_no'
]
=
'estx'
.
generate_rand_str
(
10
,
3
);
$data
[
'create_time'
]
=
time
();
$data
[
'create_time'
]
=
time
();
$data
[
'create_ip'
]
=
get_client_ip
(
0
);
$data
[
'create_ip'
]
=
get_client_ip
(
0
);
...
...
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