正在显示
6 个修改的文件
包含
24 行增加
和
24 行删除
| @@ -60,7 +60,7 @@ class SyncFile extends Command | @@ -60,7 +60,7 @@ class SyncFile extends Command | ||
| 60 | //同步到大文件 | 60 | //同步到大文件 |
| 61 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; | 61 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; |
| 62 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 62 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 63 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 63 | + $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 64 | return shell_exec($cmd); | 64 | return shell_exec($cmd); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| @@ -69,7 +69,7 @@ class SyncFile extends Command | @@ -69,7 +69,7 @@ class SyncFile extends Command | ||
| 69 | //同步到大文件 | 69 | //同步到大文件 |
| 70 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; | 70 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; |
| 71 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 71 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 72 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 72 | + $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 73 | return shell_exec($cmd); | 73 | return shell_exec($cmd); |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| @@ -54,7 +54,7 @@ class SyncTimeMinuteFile extends Command | @@ -54,7 +54,7 @@ class SyncTimeMinuteFile extends Command | ||
| 54 | $this->param['name'] = basename($path); | 54 | $this->param['name'] = basename($path); |
| 55 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); | 55 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); |
| 56 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); | 56 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); |
| 57 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | 57 | + $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; |
| 58 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | 58 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; |
| 59 | $code = shell_exec($cmd); | 59 | $code = shell_exec($cmd); |
| 60 | if(200 != (int)$code){ | 60 | if(200 != (int)$code){ |
| @@ -76,7 +76,7 @@ class ProductFileUpload extends Command | @@ -76,7 +76,7 @@ class ProductFileUpload extends Command | ||
| 76 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; | 76 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; |
| 77 | echo date('Y-m-d H:i:s') . '编辑的path为:'. $file_path. PHP_EOL; | 77 | echo date('Y-m-d H:i:s') . '编辑的path为:'. $file_path. PHP_EOL; |
| 78 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 78 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 79 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" -F "file_name='.$newName.'" https://v6-file.globalso.com/fileUploads.php'; | 79 | + $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" -F "file_name='.$newName.'" https://v6-file.globalso.com/fileUploads.php'; |
| 80 | return shell_exec($cmd); | 80 | return shell_exec($cmd); |
| 81 | } | 81 | } |
| 82 | } | 82 | } |
| @@ -59,7 +59,7 @@ class SyncProjectFile extends Command | @@ -59,7 +59,7 @@ class SyncProjectFile extends Command | ||
| 59 | //同步到大文件 | 59 | //同步到大文件 |
| 60 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; | 60 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; |
| 61 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 61 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 62 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 62 | + $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 63 | return shell_exec($cmd); | 63 | return shell_exec($cmd); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| @@ -68,7 +68,7 @@ class SyncProjectFile extends Command | @@ -68,7 +68,7 @@ class SyncProjectFile extends Command | ||
| 68 | //同步到大文件 | 68 | //同步到大文件 |
| 69 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; | 69 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; |
| 70 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 70 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 71 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 71 | + $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 72 | return shell_exec($cmd); | 72 | return shell_exec($cmd); |
| 73 | } | 73 | } |
| 74 | } | 74 | } |
| @@ -33,7 +33,7 @@ class SyncVideo extends Command | @@ -33,7 +33,7 @@ class SyncVideo extends Command | ||
| 33 | $this->param['name'] = basename($path); | 33 | $this->param['name'] = basename($path); |
| 34 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); | 34 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); |
| 35 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); | 35 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); |
| 36 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | 36 | + $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; |
| 37 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | 37 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; |
| 38 | $code = shell_exec($cmd); | 38 | $code = shell_exec($cmd); |
| 39 | echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL; | 39 | echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL; |
| @@ -19,23 +19,23 @@ class PayStripeApi | @@ -19,23 +19,23 @@ class PayStripeApi | ||
| 19 | //币种对应支付方式 | 19 | //币种对应支付方式 |
| 20 | public $currency_types = [ | 20 | public $currency_types = [ |
| 21 | 'usd' => ['card', 'cashapp', 'link', 'afterpay_clearpay'], | 21 | 'usd' => ['card', 'cashapp', 'link', 'afterpay_clearpay'], |
| 22 | - 'eur' => ['card', 'ideal', 'giropay', 'sofort', 'bancontact', 'klarna', 'link'], | ||
| 23 | - 'gbp' => ['card', 'apple_pay', 'google_pay', 'klarna', 'link', 'afterpay_clearpay'], | ||
| 24 | - 'aud' => ['card', 'afterpay_clearpay', 'apple_pay', 'google_pay'], | ||
| 25 | - 'cad' => ['card', 'apple_pay', 'google_pay', 'link'], | ||
| 26 | - 'sgd' => ['card', 'grabpay', 'fpx', 'google_pay'], | ||
| 27 | - 'jpy' => ['card', 'apple_pay', 'google_pay'], | ||
| 28 | - 'cny' => ['alipay', 'wechat_pay'], | ||
| 29 | - 'brl' => ['card', 'boleto', 'pix'], | ||
| 30 | - 'mxn' => ['card', 'oxxo'], | ||
| 31 | - 'inr' => ['card', 'upi', 'netbanking'], | ||
| 32 | - 'php' => ['card', 'paymaya', 'gcash'], | ||
| 33 | - 'myr' => ['card', 'fpx'], | ||
| 34 | - 'thb' => ['card', 'promptpay'], | ||
| 35 | - 'idr' => ['card', 'bank_transfer'], | ||
| 36 | - 'zar' => ['card'], | ||
| 37 | - 'ngn' => ['card'], | ||
| 38 | - 'aed' => ['card', 'apple_pay', 'google_pay'] | 22 | +// 'eur' => ['card', 'ideal', 'giropay', 'sofort', 'bancontact', 'klarna', 'link'], |
| 23 | +// 'gbp' => ['card', 'apple_pay', 'google_pay', 'klarna', 'link', 'afterpay_clearpay'], | ||
| 24 | +// 'aud' => ['card', 'afterpay_clearpay', 'apple_pay', 'google_pay'], | ||
| 25 | +// 'cad' => ['card', 'apple_pay', 'google_pay', 'link'], | ||
| 26 | +// 'sgd' => ['card', 'grabpay', 'fpx', 'google_pay'], | ||
| 27 | +// 'jpy' => ['card', 'apple_pay', 'google_pay'], | ||
| 28 | +// 'cny' => ['alipay', 'wechat_pay'], | ||
| 29 | +// 'brl' => ['card', 'boleto', 'pix'], | ||
| 30 | +// 'mxn' => ['card', 'oxxo'], | ||
| 31 | +// 'inr' => ['card', 'upi', 'netbanking'], | ||
| 32 | +// 'php' => ['card', 'paymaya', 'gcash'], | ||
| 33 | +// 'myr' => ['card', 'fpx'], | ||
| 34 | +// 'thb' => ['card', 'promptpay'], | ||
| 35 | +// 'idr' => ['card', 'bank_transfer'], | ||
| 36 | +// 'zar' => ['card'], | ||
| 37 | +// 'ngn' => ['card'], | ||
| 38 | +// 'aed' => ['card', 'apple_pay', 'google_pay'] | ||
| 39 | ]; | 39 | ]; |
| 40 | 40 | ||
| 41 | // 构造函数设置密钥 | 41 | // 构造函数设置密钥 |
-
请 注册 或 登录 后发表评论