mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -23,6 +23,9 @@ class PayTaro | ||||
|         $curl = new Curl(); | ||||
|         $curl->post('https://api.paytaro.com/v1/gateway/fetch', http_build_query($params)); | ||||
|         $result = $curl->response; | ||||
|         if (!$result) { | ||||
|             abort(500, '网络异常'); | ||||
|         } | ||||
|         if ($curl->error) { | ||||
|             $errors = (array)$result->errors; | ||||
|             abort(500, $errors[array_keys($errors)[0]][0]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user