|
|
@@ -742,10 +742,12 @@ class WithdrawForm extends Model {
|
|
|
public function batchWithdraw($limit, $start, $params){
|
|
|
$config = Cache::getSystemConfig();
|
|
|
$minAmount = $config['manualWithdrawMinAmount']['VALUE'];
|
|
|
- LoggerTool::debug(['batchWithdraw', $params['handleUserId'], $minAmount]);
|
|
|
+
|
|
|
$condition = '';
|
|
|
$adminRoleId = Admin::getRoleIdById($params['handleUserId']);
|
|
|
+ LoggerTool::debug(['$adminRoleId', $adminRoleId]);
|
|
|
$isSuper = AdminRole::isSuperAdmin($adminRoleId);
|
|
|
+ LoggerTool::debug(['$isSuper', $isSuper]);
|
|
|
if (!$isSuper) {
|
|
|
$adminCountry = AdminCountry::getCountry($params['handleUserId']);
|
|
|
$quotedAdminCountry = array_map(function($item) {
|