|
|
|
@ -1621,7 +1621,7 @@ function getGameList($partner_id) {
|
|
|
|
|
|
|
|
|
|
function getAdminData ($uid) {
|
|
|
|
|
$adminData = SM('auth_group_access','sys_')
|
|
|
|
|
->field('data_empower_type,data_president,show_data,show_market_admin,show_promote,allow_over_week')
|
|
|
|
|
->field('data_empower_type,data_president,show_data,show_market_admin,show_promote,allow_over_week,show_merchant')
|
|
|
|
|
->join('left join sys_auth_group on sys_auth_group_access.group_id=sys_auth_group.id')
|
|
|
|
|
->where(array('uid'=>$uid))->find();
|
|
|
|
|
|
|
|
|
@ -3286,7 +3286,7 @@ function getCpCompanySelect($type = 1){
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
function getMerchantList($type = 1){
|
|
|
|
|
if(A('Market','Event')->getConfig('isMarket')) return [];
|
|
|
|
|
if(session('user_auth')['show_merchant'] == 0) return [];
|
|
|
|
|
|
|
|
|
|
$data = M("payment_merchant","tab_")->field("id,name,ways")->select();
|
|
|
|
|
return $data;
|
|
|
|
@ -3299,7 +3299,7 @@ function getMerchantList($type = 1){
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
function getMerchantName($id = 1){
|
|
|
|
|
if(A('Market','Event')->getConfig('isMarket')) return '--';
|
|
|
|
|
if(session('user_auth')['show_merchant'] == 0) return '--';
|
|
|
|
|
|
|
|
|
|
$data = M("payment_merchant","tab_")->field("name")->where(['id'=>$id])->find();
|
|
|
|
|
return $data['name']?$data['name']:'无';
|
|
|
|
|