Merge branch 'fix/member_user_info' of wmtx/platform into release

修改超级签价格为配置
master
廖金灵 5 years ago committed by Gogs
commit df1ca85cf9

@ -23,9 +23,13 @@ class SsgController extends BaseController {
const CODE_ERROR = -97; //验证码错误 const CODE_ERROR = -97; //验证码错误
const RETURN_SUCCESS = 1; const RETURN_SUCCESS = 1;
const RETURN_FALSE = 2; const RETURN_FALSE = 2;
const signprice = 10; //充值金额 public $signprice = 10; //充值金额
public function _initialize()
{
parent::_initialize();
$this->signprice = C("SIGN_PRICE")?:10;
}
public function login() public function login()
{ {
$promoteId = I("promote_id", 0); $promoteId = I("promote_id", 0);
@ -511,7 +515,7 @@ class SsgController extends BaseController {
exit(); exit();
} }
$this->assign("price", self::signprice); $this->assign("price", $this->signprice);
//$this->assign("order_id", $orderId); //$this->assign("order_id", $orderId);
$this->assign("game_id",$gameId); $this->assign("game_id",$gameId);
$this->assign("game_name",$gameInfo['game_name']); $this->assign("game_name",$gameInfo['game_name']);
@ -530,7 +534,7 @@ class SsgController extends BaseController {
} }
$gameId = I("game_id", 0); $gameId = I("game_id", 0);
$paytype = I("pay_type", 'ali'); $paytype = I("pay_type", 'ali');
$price = self::signprice; $price = $this->signprice;
$userId = $user['user_id']; $userId = $user['user_id'];
if (!$userId || !$gameId) { if (!$userId || !$gameId) {
//$this->error("参数有误!"); //$this->error("参数有误!");

Loading…
Cancel
Save