|
|
|
@ -212,7 +212,8 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
'user_account' => '测试账号',
|
|
|
|
|
'user_phone' => '手机号',
|
|
|
|
|
'promote_account' => '所属推广员',
|
|
|
|
|
'apply_promote_account' => '申请人',
|
|
|
|
|
'apply_username' => '申请人',
|
|
|
|
|
'verify_admin_username' => '审核人',
|
|
|
|
|
'apply_amount' => '申请金额',
|
|
|
|
|
'provide_amount' => '发放金额',
|
|
|
|
|
'verify_status_text' => '审核状态',
|
|
|
|
@ -230,10 +231,13 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$gameId = $params['game_id'] ?? 0;
|
|
|
|
|
|
|
|
|
|
$admins = M('ucenter_member', 'sys_')->field(['id', 'username'])->select();
|
|
|
|
|
|
|
|
|
|
$this->assign('verifyStatusList', TestingResourceRepository::$verifyStatusList);
|
|
|
|
|
$this->assign('provideStatusList', TestingResourceRepository::$provideStatusList);
|
|
|
|
|
$this->assign('servers', $gameRepository->getServersByGameId($gameId));
|
|
|
|
|
$this->assign('games', $gameRepository->getChoiceGames());
|
|
|
|
|
$this->assign('admins', $admins);
|
|
|
|
|
$this->assign('count', $count);
|
|
|
|
|
$this->assign('_page', $pagination);
|
|
|
|
|
$this->assign('records', $records);
|
|
|
|
@ -266,7 +270,6 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
'user_account' => $role['user_account'],
|
|
|
|
|
'server_name' => $role['server_name'],
|
|
|
|
|
'role_name' => $role['role_name'],
|
|
|
|
|
'apply_promote_account' => $applyPromote ? $applyPromote['account'] : '',
|
|
|
|
|
'promote_account' => $promote['account'],
|
|
|
|
|
'ref_name' => $order['ref_name'],
|
|
|
|
|
'ref_amount' => $order['ref_amount'],
|
|
|
|
@ -337,9 +340,10 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
public function doApply()
|
|
|
|
|
{
|
|
|
|
|
$params = I('post.');
|
|
|
|
|
$userAuth = session('user_auth');
|
|
|
|
|
try {
|
|
|
|
|
$testingResourceService = new TestingResourceService();
|
|
|
|
|
$testingResourceService->apply($params);
|
|
|
|
|
$testingResourceService->apply($params, null, $userAuth['uid']);
|
|
|
|
|
return $this->ajaxReturn(['status' => 1, 'message' => '申请成功,等待审核。']);
|
|
|
|
|
} catch (\Throwable $e) {
|
|
|
|
|
return $this->ajaxReturn(['status' => 0, 'message' => $e->getMessage()]);
|
|
|
|
@ -362,11 +366,13 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
if (count($batches) == 0) {
|
|
|
|
|
return $this->ajaxReturn(['status' => 0, 'message' => '无未审核批次']);
|
|
|
|
|
}
|
|
|
|
|
$userAuth = session('user_auth');
|
|
|
|
|
foreach ($batches as $batch) {
|
|
|
|
|
if ($status == 1) {
|
|
|
|
|
$service->verify($batch);
|
|
|
|
|
$service->verify($batch, $userAuth['uid']);
|
|
|
|
|
} elseif ($status == 2) {
|
|
|
|
|
$service->verifyRefuse($batch);
|
|
|
|
|
$remark = '审核拒绝';
|
|
|
|
|
$service->verifyRefuse($batch, $remark, $userAuth['uid']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return $this->ajaxReturn(['status' => 1, 'message' => '操作成功']);
|
|
|
|
@ -533,7 +539,6 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
'user_account' => $role ? $role['user_account'] : '',
|
|
|
|
|
'server_name' => $role ? $role['server_name'] : '',
|
|
|
|
|
'role_name' => $role ? $role['role_name'] : '',
|
|
|
|
|
'apply_promote_account' => $applyPromote ? $applyPromote['account'] : '',
|
|
|
|
|
'promote_account' => $promote ? $promote['account'] : '',
|
|
|
|
|
'ref_name' => $order['ref_name'],
|
|
|
|
|
'ref_amount' => $order['ref_amount'],
|
|
|
|
@ -552,7 +557,6 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
'server_name' => '区服名称',
|
|
|
|
|
'user_account' => '测试账号',
|
|
|
|
|
'role_name' => '角色名称',
|
|
|
|
|
'apply_promote_account' => '申请人',
|
|
|
|
|
'promote_account' => '所属推广员',
|
|
|
|
|
'ref_name' => '资源名称',
|
|
|
|
|
'ref_amount' => '资源价值',
|
|
|
|
|