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
6b05c71e
Commit
6b05c71e
authored
Jun 18, 2024
by
董先生
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://rungit.jxdsy.cn:10000/sugar/stock_new
into dev
parents
6ed9512a
0107cffa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
application/admin/controller/Config.php
application/admin/controller/Config.php
+1
-1
application/config.php
application/config.php
+1
-1
application/market/home/Index.php
application/market/home/Index.php
+9
-1
application/money/model/Recharge.php
application/money/model/Recharge.php
+2
-1
No files found.
application/admin/controller/Config.php
View file @
6b05c71e
...
@@ -170,7 +170,7 @@ class Config extends Admin
...
@@ -170,7 +170,7 @@ class Config extends Admin
$config
=
ConfigModel
::
where
(
'id'
,
$id
)
->
find
();
$config
=
ConfigModel
::
where
(
'id'
,
$id
)
->
find
();
$details
=
'原数据:分组('
.
$config
[
'group'
]
.
')、类型('
.
$config
[
'type'
]
.
')、标题('
.
$config
[
'title'
]
.
')、名称('
.
$config
[
'name'
]
.
')'
;
$details
=
'原数据:分组('
.
$config
[
'group'
]
.
')、类型('
.
$config
[
'type'
]
.
')、标题('
.
$config
[
'title'
]
.
')、名称('
.
$config
[
'name'
]
.
')'
;
if
(
$config
==
ConfigModel
::
update
(
$data
))
{
if
(
ConfigModel
::
update
(
$data
))
{
cache
(
'system_config'
,
null
);
cache
(
'system_config'
,
null
);
$forward
=
$this
->
request
->
param
(
'_pop'
)
==
1
?
null
:
cookie
(
'__forward__'
);
$forward
=
$this
->
request
->
param
(
'_pop'
)
==
1
?
null
:
cookie
(
'__forward__'
);
// 记录行为
// 记录行为
...
...
application/config.php
View file @
6b05c71e
...
@@ -54,7 +54,7 @@ return [
...
@@ -54,7 +54,7 @@ return [
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// 应用调试模式
// 应用调试模式
'app_debug'
=>
t
ur
e
,
'app_debug'
=>
t
ru
e
,
// 应用Trace
// 应用Trace
'app_trace'
=>
false
,
'app_trace'
=>
false
,
// 应用模式状态
// 应用模式状态
...
...
application/market/home/Index.php
View file @
6b05c71e
...
@@ -82,6 +82,7 @@ class Index extends Common
...
@@ -82,6 +82,7 @@ class Index extends Common
{
{
$req
=
request
();
$req
=
request
();
$code
=
$req
::
instance
()
->
param
(
'code'
);
$code
=
$req
::
instance
()
->
param
(
'code'
);
$uid
=
$req
::
instance
()
->
param
(
'uid'
);
if
(
$code
===
null
)
{
if
(
$code
===
null
)
{
return
json
([
'data'
=>
null
,
'status'
=>
0
,
'message'
=>
'缺少参数code,操作失败'
]);
return
json
([
'data'
=>
null
,
'status'
=>
0
,
'message'
=>
'缺少参数code,操作失败'
]);
}
}
...
@@ -92,6 +93,13 @@ class Index extends Common
...
@@ -92,6 +93,13 @@ class Index extends Common
$p_range
=
$data
[
'currency'
]
-
$data
[
'yesterday_price'
];
$p_range
=
$data
[
'currency'
]
-
$data
[
'yesterday_price'
];
$data
[
'price_range'
]
=
round
(
$p_range
,
2
);
$data
[
'price_range'
]
=
round
(
$p_range
,
2
);
$data
[
'price_rate'
]
=
round
((
$p_range
/
$data
[
'yesterday_price'
]
*
100
),
2
);
$data
[
'price_rate'
]
=
round
((
$p_range
/
$data
[
'yesterday_price'
]
*
100
),
2
);
$self
=
new
StockSubAccountSelf
();
$ret
=
$self
->
myadd
(
$uid
,
$code
);
//查找是否存在
if
(
$ret
)
{
$data
[
'myselect'
]
=
1
;
}
else
{
$data
[
'myselect'
]
=
0
;
}
return
json
([
'data'
=>
$data
,
'status'
=>
1
,
'message'
=>
'操作成功'
]);
return
json
([
'data'
=>
$data
,
'status'
=>
1
,
'message'
=>
'操作成功'
]);
...
...
application/money/model/Recharge.php
View file @
6b05c71e
...
@@ -86,7 +86,8 @@ class Recharge extends Model
...
@@ -86,7 +86,8 @@ class Recharge extends Model
/*$content = \think\Config::get('sms_template')['stock_offline_auditing_success'];
/*$content = \think\Config::get('sms_template')['stock_offline_auditing_success'];
$content = str_replace(array("#var#","#amount#"),array($user_mobile,money_convert($charge['money'])), $content);
$content = str_replace(array("#var#","#amount#"),array($user_mobile,money_convert($charge['money'])), $content);
$res = sendsms_mandao('',$content,'');*/
$res = sendsms_mandao('',$content,'');*/
self
::
sms_recharge
(
'stock_offline_auditing_success'
,
$user_mobile
,
$charge
[
'money'
]);
//暂时取消后台短信通知用户充值成功,twj,20240618
//self::sms_recharge('stock_offline_auditing_success',$user_mobile,$charge['money']);
break
;
break
;
case
2
:
case
2
:
self
::
sms_recharge
(
'stock_offline_auditing_fail'
,
$user_mobile
,
$charge
[
'money'
]);
self
::
sms_recharge
(
'stock_offline_auditing_fail'
,
$user_mobile
,
$charge
[
'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