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
0f799b8f
Commit
0f799b8f
authored
Jun 22, 2024
by
twj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善期权提现记录
parent
ce05fe6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
application/apicom/home/Esop.php
application/apicom/home/Esop.php
+1
-0
application/money/model/EsopPlan.php
application/money/model/EsopPlan.php
+2
-1
No files found.
application/apicom/home/Esop.php
View file @
0f799b8f
...
...
@@ -129,6 +129,7 @@ class Esop extends Common
if
(
isset
(
$money_res
[
'account'
])
&&
$money_res
[
'account'
]
<
$data
[
'money'
])
{
ajaxmsg
(
'提现金额已经大于可用余额!'
,
0
);
}
$data
[
'stock_id'
]
=
$money_res
[
'stock_id'
];
//查询是否已申请过提现,一次只能有一笔提现
$withdraw_info
=
Db
::
name
(
'money_withdraw'
)
->
where
([
'mid'
=>
MID
])
...
...
application/money/model/EsopPlan.php
View file @
0f799b8f
...
...
@@ -68,6 +68,7 @@ class EsopPlan extends Model
$data
[
'mid'
]
=
$parameter
[
'mid'
];
$data
[
'money'
]
=
$parameter
[
'money'
]
*
100
;
$data
[
'fee'
]
=
$parameter
[
'money'
]
*
config
(
'withdraw_rate'
);
$data
[
'stock_id'
]
=
$parameter
[
'stock_id'
];
$data
[
'order_no'
]
=
'estx'
.
generate_rand_str
(
10
,
3
);
$data
[
'create_time'
]
=
time
();
$data
[
'create_ip'
]
=
get_client_ip
(
0
);
...
...
@@ -137,7 +138,7 @@ class EsopPlan extends Model
$info
=
"提现单号:"
.
$withdraw
[
'order_no'
];
$affect
=
$withdraw
[
'money'
];
$type
=
3
;
$account
=
$withdraw
[
'money'
]
/
100
;
$account
=
$withdraw
[
'money'
];
$res1
=
true
;
}
elseif
(
$status
==
2
)
{
// 提现失败 解冻冻结金额
MoneyWithdrawModel
::
sms_withdraw
(
'stock_withdraw_auditing_fail'
,
$user_mobile
,
$withdraw
[
'money'
]);
...
...
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