master
tpingzhang 5 years ago
parent 93b3743650
commit 29120fc7a5

@ -35,7 +35,7 @@ class GameController extends BaseController{
} }
/** /**
* * 初始化SDK接口
*/ */
public function init_sdk() { public function init_sdk() {
@ -46,7 +46,7 @@ class GameController extends BaseController{
} }
$contact_cs = M('tool','tab_')->where(['name' => 'contact_cs'])->find(); $contact_cs = M('tool','tab_')->where(['name' => 'contact_cs'])->find();
$contact_cs = json_decode($sdkMenus['config'],true); $contact_cs = json_decode($contact_cs['config'],true);
foreach($contact_cs as $k => &$v) { foreach($contact_cs as $k => &$v) {
$contact_cs[$k]['icon'] = C('ADMIN_DOMAIN') . $contact_cs[$k]['icon']; $contact_cs[$k]['icon'] = C('ADMIN_DOMAIN') . $contact_cs[$k]['icon'];
// //
@ -69,9 +69,8 @@ class GameController extends BaseController{
} }
array_multisort(array_column($contact_cs,'sort'),SORT_ASC,$menus); array_multisort(array_column($contact_cs,'sort'),SORT_ASC,$menus);
$ret = [ $ret = [
'contact_cs' => $contact_cs, 'contact_cs' => $contact_cs[$k],
]; ];
if (I('debug') == 1) if (I('debug') == 1)
pp(($ret)); pp(($ret));

@ -81,7 +81,7 @@ class SpendController extends Controller {
$this->assign ( 'data', $data ); $this->assign ( 'data', $data );
$this->assign ( 'btncolor', $request ['btncolor'] ); $this->assign ( 'btncolor', $request ['btncolor'] );
if ($balance + $bind_balance > $data['price']) { if ($balance + $bind_balance > $data['price']) {
$this->assign ('pay_price', 0); // 是否第三方支付 $this->assign ('pay_price', $data['price']); // 是否第三方支付
} else { } else {
$payPrice = $data['price'] - $balance - $bind_balance; $payPrice = $data['price'] - $balance - $bind_balance;
$this->assign ('pay_price', $payPrice ? $payPrice : 0); $this->assign ('pay_price', $payPrice ? $payPrice : 0);

Loading…
Cancel
Save