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)) {