From cb9f63c389a6de42309945d6da0e196cdba22bcf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 23 Aug 2019 15:00:49 +0800 Subject: [PATCH] 1 --- tools/pay_backend.py | 1 + webapp/controller/PayController.class.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tools/pay_backend.py b/tools/pay_backend.py index eff0ce1..9289c79 100644 --- a/tools/pay_backend.py +++ b/tools/pay_backend.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import os +import sys import json import time import datetime diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index eb762fb..5818533 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -85,6 +85,9 @@ class PayController { $amount = $jsonobj['price']; $itemid = $jsonobj['itemid']; $itemnum = $jsonobj['itemnum']; + if (SERVER_ENV != _ONLINE) { + $amount = 0.01; + } } $orderid = $this->getOrderId(); if (empty($orderid)) {