|
@@ -337,7 +337,7 @@ class DouYinController extends BaseApiController
|
|
|
* @author liugc <466014217@qq.com>
|
|
* @author liugc <466014217@qq.com>
|
|
|
* @date 2025/5/22 14:35
|
|
* @date 2025/5/22 14:35
|
|
|
*/
|
|
*/
|
|
|
- public function refund()
|
|
|
|
|
|
|
+ /*public function refund()
|
|
|
{
|
|
{
|
|
|
try {
|
|
try {
|
|
|
$params = $this->request->post(); // order_number appointment_time
|
|
$params = $this->request->post(); // order_number appointment_time
|
|
@@ -348,9 +348,9 @@ class DouYinController extends BaseApiController
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
return $this->fail($e->getMessage());
|
|
return $this->fail($e->getMessage());
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
/**
|
|
/**
|
|
|
- * 退款回调
|
|
|
|
|
|
|
+ * 申请退款回调
|
|
|
* @author liugc <466014217@qq.com>
|
|
* @author liugc <466014217@qq.com>
|
|
|
* @date 2025/5/22 14:35
|
|
* @date 2025/5/22 14:35
|
|
|
*/
|
|
*/
|
|
@@ -367,4 +367,21 @@ class DouYinController extends BaseApiController
|
|
|
return json(["err_no"=>1001,"err_tips"=>$e->getMessage()], 200);
|
|
return json(["err_no"=>1001,"err_tips"=>$e->getMessage()], 200);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 抖音退款成功回调
|
|
|
|
|
+ public function refundPassNotify()
|
|
|
|
|
+ {
|
|
|
|
|
+ try {
|
|
|
|
|
+ $params = $this->request->post();
|
|
|
|
|
+ Log::info('refundNotify:'.formatLogData($params));
|
|
|
|
|
+ $msg = is_array($params['msg'])?$params['msg']:json_decode($params['msg'],true);
|
|
|
|
|
+ if(DouYinService::refundPassNotify($msg)){
|
|
|
|
|
+ return json(["err_no"=>0,"err_tips"=>"success"], 200);
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (\Exception $e) {
|
|
|
|
|
+ return json(["err_no"=>1001,"err_tips"=>$e->getMessage()], 200);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|