|
|
|
@ -894,19 +894,21 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
$marketAdmins = getAdminUsernameList($marketAdminIds);
|
|
|
|
|
$adminDepartments = getAdminDepartmentList($marketAdminIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$merchant_data = M("payment_merchant","tab_")
|
|
|
|
|
->field("id,name")
|
|
|
|
|
->where("1=1")
|
|
|
|
|
->select();
|
|
|
|
|
$handle_merchant = [];
|
|
|
|
|
|
|
|
|
|
foreach ($merchant_data as $key => $value) {
|
|
|
|
|
$handle_merchant[$value['id']] = $value['name'];
|
|
|
|
|
$isMarketAdmin = A('Market','Event')->getConfig('isMarket');
|
|
|
|
|
if(!$isMarketAdmin){
|
|
|
|
|
$merchant_data = M("payment_merchant","tab_")
|
|
|
|
|
->field("id,name")
|
|
|
|
|
->where("1=1")
|
|
|
|
|
->select();
|
|
|
|
|
$handle_merchant = [];
|
|
|
|
|
|
|
|
|
|
foreach ($merchant_data as $key => $value) {
|
|
|
|
|
$handle_merchant[$value['id']] = $value['name'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach($data as $key => $value) {
|
|
|
|
|
$data[$key]['merchant_name'] = $handle_merchant[$value['merchant_id']];
|
|
|
|
|
$data[$key]['merchant_name'] = $isMarketAdmin ? "--" : $handle_merchant[$value['merchant_id']];
|
|
|
|
|
$data[$key]['pay_way'] = getPayType($value['pay_way']);
|
|
|
|
|
$data[$key]['game_name'] =clearGameNameType($data[$key]['game_name']);
|
|
|
|
|
$data[$key]['sdk_version'] =getGameTypeName($data[$key]['sdk_version']);
|
|
|
|
|