Merge remote-tracking branch 'origin/master' into akun
正在显示
8 个修改的文件
包含
26 行增加
和
43 行删除
| @@ -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 | } |
| @@ -42,7 +42,7 @@ class SyncTimeFiles extends Command | @@ -42,7 +42,7 @@ class SyncTimeFiles extends Command | ||
| 42 | $this->param['name'] = basename($path); | 42 | $this->param['name'] = basename($path); |
| 43 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); | 43 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); |
| 44 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); | 44 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); |
| 45 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | 45 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; |
| 46 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | 46 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; |
| 47 | $code = shell_exec($cmd); | 47 | $code = shell_exec($cmd); |
| 48 | if(200 != (int)$code){ | 48 | if(200 != (int)$code){ |
| @@ -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; |
| @@ -18,24 +18,24 @@ class PayStripeApi | @@ -18,24 +18,24 @@ class PayStripeApi | ||
| 18 | private $secretKey; | 18 | private $secretKey; |
| 19 | //币种对应支付方式 | 19 | //币种对应支付方式 |
| 20 | public $currency_types = [ | 20 | public $currency_types = [ |
| 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'], | 21 | + 'usd' => ['card', 'cashapp', 'link', 'alipay', 'wechat_pay', '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'], | 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'] | 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 | // 构造函数设置密钥 |
| @@ -101,31 +101,14 @@ class Extension3059ModuleController extends BaseController | @@ -101,31 +101,14 @@ class Extension3059ModuleController extends BaseController | ||
| 101 | */ | 101 | */ |
| 102 | public function save3059OrderDetail(){ | 102 | public function save3059OrderDetail(){ |
| 103 | ProjectServer::useProject(3059); | 103 | ProjectServer::useProject(3059); |
| 104 | -// $this->param = [ | ||
| 105 | -// 'amount'=>1000, | ||
| 106 | -// 'currency'=>'cny', | ||
| 107 | -// 'payment_method_types'=>'alipay', | ||
| 108 | -// 'data'=>[ | ||
| 109 | -// ['field_id'=>2, 'value'=>'20241225114204'], | ||
| 110 | -// ['field_id'=>3, 'value'=>date('Y-m-d H:i:s')], | ||
| 111 | -// ['field_id'=>4, 'value'=>1000], | ||
| 112 | -// ['field_id'=>5, 'value'=>'成都市武侯区二仙桥走成华大道'], | ||
| 113 | -// ['field_id'=>9, 'value'=>'cny'], | ||
| 114 | -// ['field_id'=>10, 'value'=>'alipay'], | ||
| 115 | -// ['field_id'=>14, 'value'=>'二仙桥大爷'], | ||
| 116 | -// ['field_id'=>15, 'value'=>'15687012587'], | ||
| 117 | -// ] | ||
| 118 | -// ]; | ||
| 119 | $this->request->validate([ | 104 | $this->request->validate([ |
| 120 | 'data'=>'required', | 105 | 'data'=>'required', |
| 121 | 'amount'=>'required', | 106 | 'amount'=>'required', |
| 122 | 'currency'=>'required', | 107 | 'currency'=>'required', |
| 123 | - 'payment_method_types'=>'required', | ||
| 124 | ],[ | 108 | ],[ |
| 125 | 'data.required' => '数据不能为空', | 109 | 'data.required' => '数据不能为空', |
| 126 | 'amount.required' => '金额不能为空', | 110 | 'amount.required' => '金额不能为空', |
| 127 | 'currency.required' => '币种不能为空', | 111 | 'currency.required' => '币种不能为空', |
| 128 | - 'payment_method_types.required' => '支付方式不能为空', | ||
| 129 | ]); | 112 | ]); |
| 130 | $this->param['module_id'] = 1;//默认订单模块 | 113 | $this->param['module_id'] = 1;//默认订单模块 |
| 131 | $moduleValueModel = new ExtensionModuleValue(); | 114 | $moduleValueModel = new ExtensionModuleValue(); |
| @@ -151,7 +134,7 @@ class Extension3059ModuleController extends BaseController | @@ -151,7 +134,7 @@ class Extension3059ModuleController extends BaseController | ||
| 151 | ]; | 134 | ]; |
| 152 | } | 135 | } |
| 153 | $pay = new PayStripeApi(); | 136 | $pay = new PayStripeApi(); |
| 154 | - $payData = $pay->createPaymentIntent($this->param['amount'],$this->param['currency'],$this->param['payment_method_types']); | 137 | + $payData = $pay->createPaymentIntent($this->param['amount'],$this->param['currency']); |
| 155 | $saveData[] = ['uuid'=>$uuid,'module_id'=>$this->param['module_id'],'field_id'=>8,'value'=>$payData['id'] ?? '未获取到支付意愿,请重新获取']; | 138 | $saveData[] = ['uuid'=>$uuid,'module_id'=>$this->param['module_id'],'field_id'=>8,'value'=>$payData['id'] ?? '未获取到支付意愿,请重新获取']; |
| 156 | $moduleValueModel->insertAll($saveData); | 139 | $moduleValueModel->insertAll($saveData); |
| 157 | }catch (\Exception $e){ | 140 | }catch (\Exception $e){ |
-
请 注册 或 登录 后发表评论