diff --git a/app/Console/Commands/AutoRefund.php b/app/Console/Commands/AutoRefund.php new file mode 100644 index 0000000..cc71365 --- /dev/null +++ b/app/Console/Commands/AutoRefund.php @@ -0,0 +1,46 @@ +autoRefund(); + } +} diff --git a/app/Models/Refund.php b/app/Models/Refund.php index 97c1bbf..0bc0e71 100755 --- a/app/Models/Refund.php +++ b/app/Models/Refund.php @@ -96,6 +96,7 @@ class Refund extends SoftDeletesModel public function weixinRefund() { $order = $this->order; + dump($order); $url = "https://api.mch.weixin.qq.com/secapi/pay/refund"; $CommonUtilPub = new \CommonUtilPub($order->project_id); $WxPayConfPub = new \WxPayConfPub($order->project_id);