Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
b9335bfd
authored
Jan 16, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
注释审核短信,调整订单金额展示内容
parent
41734920
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
app/Http/Controllers/OrderController.php
resources/views/amount/content.blade.php
app/Http/Controllers/OrderController.php
View file @
b9335bfd
...
@@ -537,10 +537,10 @@ Class OrderController extends Controller
...
@@ -537,10 +537,10 @@ Class OrderController extends Controller
if
(
$temp
[
'err_code'
]
==
0
)
{
// 成功
if
(
$temp
[
'err_code'
]
==
0
)
{
// 成功
// 3.短信发送
// 3.短信发送
$user_mobile
=
$request
->
input
(
'user_mobile'
,
''
);
//
$user_mobile = $request->input('user_mobile', '');
$content
=
'尊敬的客户,您好!您在猎芯网提交的订单('
.
$order_sn
.
')已经通过审核,请您及时登陆查看,留意最新的订单动态,祝您交易愉快,有任何疑问请联系官方客服:0755-88914841'
;
//
$content = '尊敬的客户,您好!您在猎芯网提交的订单('.$order_sn.')已经通过审核,请您及时登陆查看,留意最新的订单动态,祝您交易愉快,有任何疑问请联系官方客服:0755-88914841';
$this
->
webpower_send_sms
(
$user_mobile
,
$content
);
//
$this->webpower_send_sms($user_mobile, $content);
}
}
return
array
(
'errcode'
=>
$temp
[
'err_code'
],
'errmsg'
=>
$temp
[
'err_msg'
]);
return
array
(
'errcode'
=>
$temp
[
'err_code'
],
'errmsg'
=>
$temp
[
'err_msg'
]);
...
...
resources/views/amount/content.blade.php
View file @
b9335bfd
...
@@ -53,7 +53,15 @@
...
@@ -53,7 +53,15 @@
if
(
count
(
$exp
)
==
1
)
{
if
(
count
(
$exp
)
==
1
)
{
// 如果有两条金额记录,支付时间只有一条,则首尾款时间一致
// 如果有两条金额记录,支付时间只有一条,则首尾款时间一致
echo
count
(
$pay_amount
)
==
2
?
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (尾款)<br>'
.
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (首款)'
:
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (首款)'
;
if
(
count
(
$pay_amount
)
==
2
)
{
echo
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (尾款)<br>'
.
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (首款)'
;
}
else
{
if
(
$vo
[
'pay_type'
]
==
2
)
{
echo
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (首款)'
;
}
else
{
echo
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (尾款)'
;
}
}
}
else
{
}
else
{
if
(
$exp
[
0
]
<
$exp
[
1
]){
if
(
$exp
[
0
]
<
$exp
[
1
]){
echo
date
(
'Y-m-d H:i:s'
,
$exp
[
1
])
.
' (尾款)<br>'
.
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (首款)'
;
echo
date
(
'Y-m-d H:i:s'
,
$exp
[
1
])
.
' (尾款)<br>'
.
date
(
'Y-m-d H:i:s'
,
$exp
[
0
])
.
' (首款)'
;
...
@@ -71,27 +79,29 @@
...
@@ -71,27 +79,29 @@
</td>
</td>
<td>
<td>
<?php
<?php
// 全款
if
(
$vo
[
'currency'
]
==
1
)
{
if
(
$vo
[
'currency'
]
==
1
)
{
$currency
=
'¥'
;
$currency
=
'¥'
;
}
else
{
}
else
{
$currency
=
'$'
;
$currency
=
'$'
;
}
}
if
(
$vo
[
'order_pay_type'
]
==
1
)
{
if
(
$vo
[
'order_pay_type'
]
==
1
)
{
// 全款
echo
$currency
.
$vo
[
'pay_amount'
];
echo
$currency
.
$vo
[
'pay_amount'
];
}
else
if
(
$vo
[
'order_pay_type'
]
==
2
)
{
// 预付款
}
else
if
(
$vo
[
'order_pay_type'
]
==
2
)
{
// 预付款
$exp
=
explode
(
','
,
$vo
[
'pay_amount'
]);
$exp
=
explode
(
','
,
$vo
[
'pay_amount'
]);
if
(
count
(
$exp
)
==
1
)
{
if
(
count
(
$exp
)
==
1
)
{
if
(
$vo
[
'pay_type'
]
==
2
)
{
echo
$currency
.
$exp
[
0
]
.
' (首款)'
;
echo
$currency
.
$exp
[
0
]
.
' (首款)'
;
}
else
{
}
else
{
echo
$currency
.
$exp
[
0
]
.
' (尾款)'
;
}
}
else
{
if
(
$exp
[
0
]
>
$exp
[
1
])
{
if
(
$exp
[
0
]
>
$exp
[
1
])
{
echo
$currency
.
$exp
[
0
]
.
' (尾款)<br>'
.
$currency
.
$exp
[
1
]
.
' (首款)'
;
echo
$currency
.
$exp
[
0
]
.
' (尾款)<br>'
.
$currency
.
$exp
[
1
]
.
' (首款)'
;
}
else
{
}
else
{
echo
$currency
.
$exp
[
1
]
.
' (尾款)<br>'
.
$currency
.
$exp
[
0
]
.
' (首款)'
;
echo
$currency
.
$exp
[
1
]
.
' (尾款)<br>'
.
$currency
.
$exp
[
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