deviceId = $deviceId; $this->apiParas["device_id"] = $deviceId; } public function getDeviceId() { return $this->deviceId; } public function setDeviceName($deviceName) { $this->deviceName = $deviceName; $this->apiParas["device_name"] = $deviceName; } public function getDeviceName() { return $this->deviceName; } public function setPhotoUrl($photoUrl) { $this->photoUrl = $photoUrl; $this->apiParas["photo_url"] = $photoUrl; } public function getPhotoUrl() { return $this->photoUrl; } public function setUserCheckTime($userCheckTime) { $this->userCheckTime = $userCheckTime; $this->apiParas["user_check_time"] = $userCheckTime; } public function getUserCheckTime() { return $this->userCheckTime; } public function setUserid($userid) { $this->userid = $userid; $this->apiParas["userid"] = $userid; } public function getUserid() { return $this->userid; } public function getApiMethodName() { return "dingtalk.oapi.attendance.record.upload"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->deviceId,"deviceId"); RequestCheckUtil::checkNotNull($this->deviceName,"deviceName"); RequestCheckUtil::checkNotNull($this->userCheckTime,"userCheckTime"); RequestCheckUtil::checkNotNull($this->userid,"userid"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }