invoke($invoke['class'], $invoke['method'], $params); $is_success = $this->validateInvokeReturn($params['invoke_id'], $return); if ($is_success) { if(!empty($return)){ break; } } else { throw new \Exception('结果数据格式校验未通过'); } } catch (\Exception $e) { throw $e; } } return $return; } /** * 验证调用结果 * @param [type] $return * @return boolean */ protected function validatePay($return = null): bool { return true; } }