|
|
|
@ -336,6 +336,7 @@ class QueryController extends ThinkController
|
|
|
|
|
$promoteId = intval(I('promote_id', 0));
|
|
|
|
|
$settlementType = intval(I('settlement_type', 0));
|
|
|
|
|
$time = I('time', '');
|
|
|
|
|
|
|
|
|
|
if (empty($promoteId)) {
|
|
|
|
|
$data['status'] = 0;
|
|
|
|
|
$data['msg'] = '请选择会长账号';
|
|
|
|
@ -363,11 +364,11 @@ class QueryController extends ThinkController
|
|
|
|
|
$data['msg'] = '非会长账号,无法执行此操作';
|
|
|
|
|
$this->ajaxReturn($data);
|
|
|
|
|
}
|
|
|
|
|
if ($promote['ver_status'] != 1) {
|
|
|
|
|
$data['status'] = 0;
|
|
|
|
|
$data['msg'] = '该会长未通过资质认证审核,暂时无法提现';
|
|
|
|
|
$this->ajaxReturn($data);
|
|
|
|
|
}
|
|
|
|
|
// if ($promote['ver_status'] != 1) {
|
|
|
|
|
// $data['status'] = 0;
|
|
|
|
|
// $data['msg'] = '该会长未通过资质认证审核,暂时无法提现';
|
|
|
|
|
// $this->ajaxReturn($data);
|
|
|
|
|
// }
|
|
|
|
|
if ($promote['settlement_type'] == 1) {
|
|
|
|
|
if (!in_array($settlementType, [1, 3])) {
|
|
|
|
|
$data['status'] = 0;
|
|
|
|
@ -404,6 +405,7 @@ class QueryController extends ThinkController
|
|
|
|
|
switch ($settlementType) {
|
|
|
|
|
case 1:
|
|
|
|
|
$result = $withdrawModel->promoteWithdrawWeeklyByPromote($promote, false, $data);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
$result = $withdrawModel->promoteWithdrawPerMonthByPromote($promote, false, $data);
|
|
|
|
|