导出账号权限修改配置

master
zhengyongxing 5 years ago
parent 0482836a8e
commit 4d938b85f4

@ -953,7 +953,8 @@ function checkEncryptionAuth(&$value,$string){
}else{
$exportRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.$string."_encryption_check");
if (checkRule($exportRule,array('in','1,2'))) {
if (!checkRule($exportRule,array('in','1,2'))) {
// dump(1);die();
$value = encryption($value);
}

@ -2645,6 +2645,7 @@ class ExportController extends Controller
$allDatas['spend_amount'] = $spend;
$allDatas['deposit_amount'] = $deposit;
$allDatas['coin_amount'] = $promoteCoin;
checkEncryptionAuth($allDatas['user_account'],'valueDetail');
mb_convert_variables('GBK', 'UTF-8', $allDatas);
fputcsv($fp, $allDatas);
}
@ -4151,7 +4152,7 @@ class ExportController extends Controller
$xlsName = $_REQUEST['xlsname'];
$data = $data['data'];
foreach ($data as $key => $value) {
checkEncryptionAuth($data[$key]['user_account'],'deposit_lists');
checkEncryptionAuth($data[$key]['user_account'],'BindRechargeRecordExport');
$data[$key]['pay_way'] = get_pay_way($value['pay_way']);
$data[$key]['create_time'] = date('Y-m-d H:i:s',$value['create_time']);
if ($value['pay_status'] == 1) {

@ -1567,3 +1567,6 @@ CREATE TABLE `tab_finance_compare_info` (
KEY `pay_way` (`pay_way`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='财务导入对账详情表';
-- zyx 20200420
ALTER TABLE `platform`.`sys_auth_rule`
MODIFY COLUMN `title` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '规则中文描述' AFTER `name`;
Loading…
Cancel
Save