Loading src/Manager/UploadManager.php +1 −1 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,7 @@ class UploadManager public static $pathPrefix = '/upload/'; public static $pathPrefix = '/upload/'; public static $options = [ public static $options = [ 'path' => 'default', // 默认保存路径 'path' => 'default', // 默认保存路径 'maxSize' => 100000000, // 文件大小 'maxSize' => 10 * 1024 * 1024, // 文件大小,10M 'temp' => false, // 是否为临时文件 'temp' => false, // 是否为临时文件 'mime' => ['jpeg', 'png', 'gif', 'jpg', 'svg', 'txt', 'pdf', 'xlsx', 'xls', 'doc', 'docx', 'rar', 'zip', 'csv'], // 允许上传的文件类型 'mime' => ['jpeg', 'png', 'gif', 'jpg', 'svg', 'txt', 'pdf', 'xlsx', 'xls', 'doc', 'docx', 'rar', 'zip', 'csv'], // 允许上传的文件类型 ]; ]; Loading src/Shopify/tools/CurlRequest.php +1 −1 Original line number Original line Diff line number Diff line Loading @@ -12,7 +12,7 @@ class CurlRequest $ch = curl_init(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 50); // 设置超时限制防止死循环 curl_setopt($ch, CURLOPT_TIMEOUT, 100); // 设置超时限制防止死循环 curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'PHPClassic/PHPShopify'); curl_setopt($ch, CURLOPT_USERAGENT, 'PHPClassic/PHPShopify'); $headers = []; $headers = []; Loading Loading
src/Manager/UploadManager.php +1 −1 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,7 @@ class UploadManager public static $pathPrefix = '/upload/'; public static $pathPrefix = '/upload/'; public static $options = [ public static $options = [ 'path' => 'default', // 默认保存路径 'path' => 'default', // 默认保存路径 'maxSize' => 100000000, // 文件大小 'maxSize' => 10 * 1024 * 1024, // 文件大小,10M 'temp' => false, // 是否为临时文件 'temp' => false, // 是否为临时文件 'mime' => ['jpeg', 'png', 'gif', 'jpg', 'svg', 'txt', 'pdf', 'xlsx', 'xls', 'doc', 'docx', 'rar', 'zip', 'csv'], // 允许上传的文件类型 'mime' => ['jpeg', 'png', 'gif', 'jpg', 'svg', 'txt', 'pdf', 'xlsx', 'xls', 'doc', 'docx', 'rar', 'zip', 'csv'], // 允许上传的文件类型 ]; ]; Loading
src/Shopify/tools/CurlRequest.php +1 −1 Original line number Original line Diff line number Diff line Loading @@ -12,7 +12,7 @@ class CurlRequest $ch = curl_init(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 50); // 设置超时限制防止死循环 curl_setopt($ch, CURLOPT_TIMEOUT, 100); // 设置超时限制防止死循环 curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'PHPClassic/PHPShopify'); curl_setopt($ch, CURLOPT_USERAGENT, 'PHPClassic/PHPShopify'); $headers = []; $headers = []; Loading