正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -172,6 +172,7 @@ class PayStripeApi | @@ -172,6 +172,7 @@ class PayStripeApi | ||
| 172 | // 根据事件类型处理 | 172 | // 根据事件类型处理 |
| 173 | switch ($eventType) { | 173 | switch ($eventType) { |
| 174 | case 'payment_intent.succeeded': | 174 | case 'payment_intent.succeeded': |
| 175 | + @file_put_contents(storage_path('logs/lyh_3059_error.log'), var_export('success', true) . PHP_EOL, FILE_APPEND); | ||
| 175 | // 处理支付成功逻辑 | 176 | // 处理支付成功逻辑 |
| 176 | $paymentIntentId = $eventData['id']; | 177 | $paymentIntentId = $eventData['id']; |
| 177 | self::getExtensionInfo($paymentIntentId,$eventData); | 178 | self::getExtensionInfo($paymentIntentId,$eventData); |
| @@ -202,6 +203,7 @@ class PayStripeApi | @@ -202,6 +203,7 @@ class PayStripeApi | ||
| 202 | * @time :2024/12/25 14:43 | 203 | * @time :2024/12/25 14:43 |
| 203 | */ | 204 | */ |
| 204 | public static function getExtensionInfo($id,$eventData){ | 205 | public static function getExtensionInfo($id,$eventData){ |
| 206 | + @file_put_contents(storage_path('logs/lyh_3059_error.log'), var_export('进入', true) . PHP_EOL, FILE_APPEND); | ||
| 205 | ProjectServer::useProject(3059); | 207 | ProjectServer::useProject(3059); |
| 206 | $extensionModel = new ExtensionModuleValue(); | 208 | $extensionModel = new ExtensionModuleValue(); |
| 207 | $info = $extensionModel->read(['value'=>$id]); | 209 | $info = $extensionModel->read(['value'=>$id]); |
| @@ -213,7 +215,8 @@ class PayStripeApi | @@ -213,7 +215,8 @@ class PayStripeApi | ||
| 213 | ['uuid'=>$info['uuid'],'module_id'=>$info['module_id'],'field_id'=>6,'value'=>'success'], | 215 | ['uuid'=>$info['uuid'],'module_id'=>$info['module_id'],'field_id'=>6,'value'=>'success'], |
| 214 | ['uuid'=>$info['uuid'],'module_id'=>$info['module_id'],'field_id'=>7,'value'=>json_encode($eventData)], | 216 | ['uuid'=>$info['uuid'],'module_id'=>$info['module_id'],'field_id'=>7,'value'=>json_encode($eventData)], |
| 215 | ]; | 217 | ]; |
| 216 | - $extensionModel->insertAll($data); | 218 | + $rs = $extensionModel->insertAll($data); |
| 219 | + @file_put_contents(storage_path('logs/lyh_3059_error.log'), var_export('结束'.$rs, true) . PHP_EOL, FILE_APPEND); | ||
| 217 | DB::disconnect('custom_mysql'); | 220 | DB::disconnect('custom_mysql'); |
| 218 | } | 221 | } |
| 219 | 222 |
-
请 注册 或 登录 后发表评论