1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 19:44:02 +08:00
xiaochong0302 3c906cb6c7 1.修复验证码
2.增加第三方登录
2020-04-17 18:53:04 +08:00

37 lines
682 B
PHP

<?php
namespace App\Http\Admin\Services;
use App\Models\Trade as TradeModel;
use App\Services\Pay\Wxpay as WxpayService;
class WxpayTest extends PayTest
{
protected $channel = TradeModel::CHANNEL_WXPAY;
public function scan(TradeModel $trade)
{
$wxpayService = new WxpayService();
$qrcode = $wxpayService->scan($trade);
return $qrcode ?: false;
}
public function status($tradeNo)
{
$wxpayService = new WxpayService();
return $wxpayService->status($tradeNo);
}
public function cancel($tradeNo)
{
$wxpayService = new WxpayService();
return $wxpayService->close($tradeNo);
}
}