diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index d89aaf7a4..6ce08eafd 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -23,9 +23,13 @@ class SsgController extends BaseController { const CODE_ERROR = -97; //验证码错误 const RETURN_SUCCESS = 1; const RETURN_FALSE = 2; - const signprice = 10; //充值金额 - + public $signprice = 10; //充值金额 + public function _initialize() + { + parent::_initialize(); + $this->signprice = C("SIGN_PRICE")?:10; + } public function login() { $promoteId = I("promote_id", 0); @@ -511,7 +515,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']); @@ -530,7 +534,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("参数有误!");