imageUrl = $imageUrl; $this->apiParas["image_url"] = $imageUrl; } public function getImageUrl() { return $this->imageUrl; } public function setType($type) { $this->type = $type; $this->apiParas["type"] = $type; } public function getType() { return $this->type; } public function getApiMethodName() { return "dingtalk.oapi.ocr.structured.recognize"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->imageUrl,"imageUrl"); RequestCheckUtil::checkMaxLength($this->imageUrl,1000,"imageUrl"); RequestCheckUtil::checkNotNull($this->type,"type"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }