```php
//记录执行时间
$start = microtime(true);
$data = jsonDecode($data, true);
$result = ['status' => 'error= Timer::add(self::QINIU_TIMEOUT, function () use ($connection) {
$connection->send(json_encode(['status'] == 'success') {
$result = ['status' => 'success', 'info' => $res['info']];
} else {
$result =['status' => 'error', 'info' => '图片上传失败,请重试!'];
}
$end2 = microtime(true);
//如果上传成功,则删除定时器
if ($result['status'] == 'success') {
Timer::del($