This commit is contained in:
Hankin 2026-04-23 16:07:06 +08:00
parent 0e6ec0ded3
commit 6512ae5027

View File

@ -7,6 +7,7 @@ use App\Http\Response\ResponseJson;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use TypeError;
class WechatPayController extends Controller
{
@ -40,7 +41,7 @@ class WechatPayController extends Controller
$remark = $request->remark;
try {
$res = WechatPayService::mchTransfer($trade_no, $scene_id, $openid, $amount, $remark, []);
} catch (Exception $e) {
} catch (TypeError $e) {
return $this->failure($e->getMessage());
}