diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php index 63c99a420..4f558fbcf 100644 --- a/Application/Admin/Controller/QueryController.class.php +++ b/Application/Admin/Controller/QueryController.class.php @@ -1007,6 +1007,7 @@ class QueryController extends ThinkController { $page = I('p', 1); $row = I('row', 10); + $reviewTypeList = WithdrawModel::$reviewTypeList; $map['_string'] = '1=1'; $adminid = C('USER_ADMINISTRATOR');//获取超管id $adminmobile = M('UcenterMember')->field('mobile')->find($adminid); @@ -1023,6 +1024,9 @@ class QueryController extends ThinkController if (isset($_REQUEST['settlement_type'])) { $map['settlement_type'] = $_REQUEST['settlement_type']; } + if (isset($_REQUEST['review_type'])) { + $map['review_type'] = $_REQUEST['review_type']; + } if (isset($_REQUEST['promote_account'])) { if ($_REQUEST['promote_account'] == '全部') { unset($_REQUEST['promote_account']); @@ -1052,7 +1056,7 @@ class QueryController extends ThinkController } } - $fields = 'id, widthdraw_number, sum_money, promote_id, promote_account, op_id, op_type, last_op_id, last_op_type, settlement_type, settlement_begin_time, settlement_end_time, create_time, status, respond, audit_time'; + $fields = 'id, widthdraw_number, sum_money, promote_id, promote_account, op_id, op_type, last_op_id, last_op_type, settlement_type, settlement_begin_time, settlement_end_time, create_time, status, respond, audit_time, review_type'; $count = 0; if (I('export', 0) == 1) { $records = D('withdraw')->field($fields) @@ -1093,6 +1097,7 @@ class QueryController extends ThinkController 'last_op_id_text' => $this->getOpTypeText($record['last_op_type'], $record['last_op_id']), 'op_type_text' => getPromoteWithdrawOpType($record['op_type']), 'last_op_type_text' => getPromoteWithdrawOpType($record['last_op_type']), + 'review_type_text' => $reviewTypeList[$record['review_type']] ?? '未知', 'settlement_type_text' => getPromoteWithdrawSettlementType($record['settlement_type']), 'settlement_begin_time' => $record['settlement_begin_time'] ? date('Y-m-d H:i:s', $record['settlement_begin_time']) : '--', 'settlement_end_time' => date('Y-m-d H:i:s', $record['settlement_end_time']), @@ -1118,6 +1123,7 @@ class QueryController extends ThinkController 'op_type_text' => '操作人类型', 'last_op_id_text' => '最后操作人', 'last_op_type_text' => '最后操作人类型', + 'review_type_text' => '审核模式', 'settlement_type_text' => '提现模式', 'settlement_begin_time' => '结算开始时间', 'settlement_end_time' => '结算截止时间', @@ -1153,6 +1159,7 @@ class QueryController extends ThinkController setPowerPromoteIds($map); $companys = getPromoteCompanys(); $this->assign('companys', $companys); + $this->assign('reviewTypeList', $reviewTypeList); $this->assign('is_admin', is_administrator()); $this->assign('list_data', $datas); $this->display(); diff --git a/Application/Admin/Model/WithdrawModel.class.php b/Application/Admin/Model/WithdrawModel.class.php index 7db178856..75b82fb75 100644 --- a/Application/Admin/Model/WithdrawModel.class.php +++ b/Application/Admin/Model/WithdrawModel.class.php @@ -26,6 +26,10 @@ class WithdrawModel extends Model{ const SETTLEMENT_TYPE_RECOUP = 3; const SETTLEMENT_TYPE_OTHER = 9; + //审核模式 + const REVIEW_TYPE_MANUAL = 1; + const REVIEW_TYPE_AUTO = 2; + /** * 构造函数 * @param string $name 模型名称 @@ -51,6 +55,11 @@ class WithdrawModel extends Model{ self::SETTLEMENT_TYPE_RECOUP => '补点', self::SETTLEMENT_TYPE_OTHER => '其他', ]; + + public static $reviewTypeList = [ + self::REVIEW_TYPE_MANUAL => '人工审核', + self::REVIEW_TYPE_AUTO => '自动审核', + ]; /* * 开发者提现未处理列表 @@ -193,7 +202,13 @@ class WithdrawModel extends Model{ $add['promote_id'] = $promote['id']; $add['promote_account'] = $promote['account']; $add['create_time'] = $thisTime; - $add['status'] = ($promote['auto_review_withdraw_status'] == 1) ? 1 : 0; + if ($promote['auto_review_withdraw_status'] == 1) { + $add['status'] = 1; + $add['review_type'] = 2; + } else { + $add['status'] = 0; + $add['review_type'] = 1; + } $add['widthdraw_number'] = D('withdraw')->produceWithdrawNumber(1); $add['settlement_begin_time'] = $settlementBeginTime; $add['settlement_end_time'] = $settlementEndTime; @@ -329,7 +344,13 @@ class WithdrawModel extends Model{ $add['promote_id'] = $promote['id']; $add['promote_account'] = $promote['account']; $add['create_time'] = $thisTime; - $add['status'] = ($promote['auto_review_withdraw_status'] == 1) ? 1 : 0; + if ($promote['auto_review_withdraw_status'] == 1) { + $add['status'] = 1; + $add['review_type'] = 2; + } else { + $add['status'] = 0; + $add['review_type'] = 1; + } $add['widthdraw_number'] = D('withdraw')->produceWithdrawNumber(2); $add['settlement_begin_time'] = $settlementBeginTime; $add['settlement_end_time'] = $settlementEndTime; @@ -447,7 +468,13 @@ class WithdrawModel extends Model{ $add['promote_id'] = $promote['id']; $add['promote_account'] = $promote['account']; $add['create_time'] = $thisTime; - $add['status'] = ($promote['auto_review_withdraw_status'] == 1) ? 1 : 0; + if ($promote['auto_review_withdraw_status'] == 1) { + $add['status'] = 1; + $add['review_type'] = 2; + } else { + $add['status'] = 0; + $add['review_type'] = 1; + } $add['widthdraw_number'] = D('withdraw')->produceWithdrawNumber(3); $add['settlement_begin_time'] = $settlementBeginTime; $add['settlement_end_time'] = $settlementEndTime; diff --git a/Application/Admin/View/Query/withdraw.html b/Application/Admin/View/Query/withdraw.html index 2946f9515..9932b2f13 100644 --- a/Application/Admin/View/Query/withdraw.html +++ b/Application/Admin/View/Query/withdraw.html @@ -111,6 +111,14 @@ +