调试
This commit is contained in:
parent
cc842a9757
commit
a8e0ec48ed
@ -8,6 +8,7 @@ use app\common\logic\store_order\StoreOrderLogic;
|
||||
use app\common\service\pay\PayService;
|
||||
use app\common\service\wechat\WechatTemplate;
|
||||
use Exception;
|
||||
use support\Cache;
|
||||
use think\facade\Db;
|
||||
use Webman\Config;
|
||||
use hg\apidoc\annotation as ApiDoc;
|
||||
@ -22,6 +23,7 @@ class IndexController extends BaseApiController
|
||||
public function index()
|
||||
{
|
||||
|
||||
try {
|
||||
$wechat = new PayService(1);
|
||||
$order = [
|
||||
'out_trade_no' => 'PF1717558027664507',
|
||||
@ -41,7 +43,12 @@ class IndexController extends BaseApiController
|
||||
];
|
||||
|
||||
$res = $wechat->wechat->refund($order);
|
||||
d($res);
|
||||
Cache::set('kk',json_decode($res,true));
|
||||
} catch (Exception $e) {
|
||||
\support\Log::info($e->extra['message']?? $e->getMessage());
|
||||
throw new \Exception($e->extra['message']?? $e->getMessage());
|
||||
}
|
||||
d(1);
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user