初始化代码

This commit is contained in:
2025-12-22 14:32:54 +08:00
parent e27ab90d9f
commit d02b31a8b9
1459 changed files with 240973 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
/**
* Error defination.
*/
namespace QcloudImage;
class Error {
/**
* Create reusable signature.
* This signature will expire at time()+$howlong timestamp.
* Return the signature on success.
* Return false on fail.
*/
public static function json($code, $message, $httpcode = 0) {
return json_encode(array(
'code' => $code,
'message' => $message,
'httpcode' => $httpcode,
'data' => json_decode('{}',true)
));
}
public static $Param = -1;
public static $Network = -2;
public static $FilePath = -3;
public static $Unknown = -4;
}