'/plugins/bargain/goodsDetail' # 'data' => [ # 'user_id' => 73 # 'nickname' => '昵称' # 'avatar_url' => 'https://thirdwx.qlogo.cn/mmopen/vi_32/110bN5gQSEcibC3782F9Ep4icGgB74EOJPK3ONHrT1OPViaogEllKWDwEKibwRxGEp6sRHDxRBXOyLh1BPLCmA8Grw/132' # 'item_id' => '38' # 'price' => '300.00' # 'min_price' => '10.00' # 'share_title' => '服务商300元' # 'share_img' => 'https://shuzixiangdao.oss-cn-guangzhou.aliyuncs.com/images/2022/01/03/image_1641177775_wuLAAMsb.jpeg' # ] # 'save_content' => [ # 'marketing_type' => 'Bargain' # 'active_id' => '38' # 'item_id' => '38' # ] # ] # ]; ########################################################################################################## /** * 获取提现限制条件 * @param [type] $invokes * @param array $params * @return array */ public function getPoster($invokes, $params = []) { $return = []; foreach ($invokes as $invoke) { try { $return = $this->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) { \Yii::error('全局调用(INVOKE_GET_WITHDRAW_COND)出错:' . $invoke['class'] . '->' . $invoke['method'] . 'msg:' . $e->getMessage()); continue; } } return $return; } /** * 验证调用结果 * @param [type] $return * @return boolean */ protected function validateGetPosterCond($return = null): bool { return true; } }