支付金额

This commit is contained in:
2022-11-02 13:57:40 +08:00
parent be105c8ceb
commit 971a017beb
2 changed files with 4 additions and 4 deletions

2
.env
View File

@@ -1,4 +1,4 @@
APP_DEBUG=false
APP_DEBUG=true
ADMIN_PANNEL_ADDRESS="http://hphb-protal.uzchain.tech"
UPLOAD_DIRECTORY="./upload"

View File

@@ -19,9 +19,9 @@ class Order
{
$userid = $GLOBALS['data']['userid'];
$amount = env("PAY_AMOUNT") ?? 15;
if (env("APP_DEBUG")) {
$amount = 0.01;
}
// if (env("APP_DEBUG")) {
// $amount = 0.01;
// }
if (empty($GLOBALS['data']['data']['student_id'])) {
return show("请正确上传用户信息!", ERROR_CODE, []);
}