|
|
@ -30,7 +30,12 @@ class GameApiController extends Think {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$batches = M('testing_resource_batch', 'tab_')->where($map)->select();
|
|
|
|
$batches = M('testing_resource_batch', 'tab_')->where($map)->select();
|
|
|
|
foreach ($batches as $batch) {
|
|
|
|
foreach ($batches as $batch) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
$service->verify($batch);
|
|
|
|
$service->verify($batch);
|
|
|
|
|
|
|
|
echo 'SUCCESS [' . $batch->id . ']审核成功' . PHP_EOL;
|
|
|
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
|
|
|
echo 'ERROR [' . $batch->id . ']审核异常' . PHP_EOL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -46,7 +51,12 @@ class GameApiController extends Think {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$batches = M('testing_resource_batch', 'tab_')->where($map)->select();
|
|
|
|
$batches = M('testing_resource_batch', 'tab_')->where($map)->select();
|
|
|
|
foreach ($batches as $batch) {
|
|
|
|
foreach ($batches as $batch) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
$service->provide($batch);
|
|
|
|
$service->provide($batch);
|
|
|
|
|
|
|
|
echo 'SUCCESS [' . $batch->id . ']发放成功' . PHP_EOL;
|
|
|
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
|
|
|
echo 'ERROR [' . $batch->id . ']发放异常' . PHP_EOL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|