weizong song 1 year ago
parent 9f9fbcdcdc
commit 49e4296f5a

@ -0,0 +1,46 @@
<?php
namespace App\Console\Commands;
use App\Libs\WxMicroPay;
use App\Models\Recharge;
use App\Models\Refund;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class AutoRefund extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'auto-refund';
/**
* The console command description.
*
* @var string
*/
protected $description = '';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
(new Refund())->autoRefund();
}
}

@ -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);

Loading…
Cancel
Save