修改超级签价格为配置

master
chenzhi 5 years ago
parent 95ce176bae
commit 1bff70297b

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

Loading…
Cancel
Save