/** * * 联系人根据MD5获得图片地址 * POST origin.json * { * "md5":[md5,md5,md5...], * "size":"缩略图大小" * } */ public function origin() { $data = $this->get_data(); $size = intval($data['size']); if (!$data['md5']) { $this->response(ResponseType::ERROR_LACKPARAMS); } $photo = new Models\Photo(); $result = $photo->geturiByMD5($data['md5'], $size ? $size : 130); $this->response(ResponseType::PHOTO_GET_OK, '', $result); }