From 1bff70297b100415f976b84f7ad90981586fb542 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 17 Mar 2020 14:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B6=85=E7=BA=A7=E7=AD=BE?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E4=B8=BA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mobile/Controller/SsgController.class.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 1cd0ea95f..b15f8296d 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -22,9 +22,13 @@ class SsgController extends BaseController { const CODE_ERROR = -97; //验证码错误 const RETURN_SUCCESS = 1; const RETURN_FALSE = 2; - const signprice = 0.01; //充值金额 - + public $signprice = 10; //充值金额 + public function _initialize() + { + parent::_initialize(); + $this->signprice = C("SIGN_PRICE")?:10; + } public function login() { $promoteId = I("promote_id", 0); @@ -497,7 +501,7 @@ class SsgController extends BaseController { exit(); } - $this->assign("price", self::signprice); + $this->assign("price", $this->signprice); //$this->assign("order_id", $orderId); $this->assign("game_id",$gameId); $this->assign("game_name",$gameInfo['game_name']); @@ -516,7 +520,7 @@ class SsgController extends BaseController { } $gameId = I("game_id", 0); $paytype = I("pay_type", 'ali'); - $price = self::signprice; + $price = $this->signprice; $userId = $user['user_id']; if (!$userId || !$gameId) { //$this->error("参数有误!");