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("参数有误!");