package cn.net.caoyao.cpzshandset.service.apkupdate;

import cn.net.caoyao.cpzshandset.common.config.Config;
import cn.net.caoyao.cpzshandset.common.config.HandsetVersionConstant;

public class CreateApkUrl {
	public CreateApkUrl() {
		// TODO Auto-generated constructor stub
	}
	
	public String getApkUrl() {
		String url = "http://www.gjcpzlzs.com/si/";
		//后改的↓
		String url2="https://www.cpzs.org/admin/";
		switch (Config.CURRENT_HANDSET_VERSION_MODE) {
		case HandsetVersionConstant.HANDSET_UNIVERSAL_VERSION_MODE:
			// 通用版
			url2 = url2 + "apkversion/getxml/22";
			break;
		case HandsetVersionConstant.HANDSET_RICE_VERSION_MODE:
			// 大米
			url = url + "android_hFarmApp_updateinfo.xml";
			break;
		case HandsetVersionConstant.HANDSET_HOLOTHURIAN_VERSION_MODE:
			// 海参
			break;
		case HandsetVersionConstant.HANDSET_WINE_TERMINAL_VERSION_MODE:
			// 酒终端
			break;
		case HandsetVersionConstant.HANDSET_WINE_DEALER_VERSION_MODE:
			// 酒经销商
			break;
		case HandsetVersionConstant.HANDSET_FIRE_EXTINGUISHER_VERSION_MODE:
			// 灭火器
			break;
		case HandsetVersionConstant.HANDSET_AGRICULTURAL_PRODUCTS_VERSION_MODE:
			// 农产品
			break;
		case HandsetVersionConstant.HANDSET_SEED_VERSION_MODE:
			// 种子
			break;
		case HandsetVersionConstant.HANDSET_YTH_VERSION_MODE:
			// 云天化
			url = url+"handset_yth_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_YTH_IMAGE_VERSION_MODE:
			//当前版本：1.0.1
			url = url+"handset_yth_image_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_CHINATEX_VERSION_MODE:
			//当前版本：1.0.0
			url = url+"chinatex_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_YTH_LOGIN_SHIPMENT_VERSION_MODE:
			//云天化责任人版汽车发货
			url = url+"handset_yth_login_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_SHEEP_EXCHANGE_CARGO:
			//羊老大调货
			url = url + "handset_sheep_exchange_cargo.xml";
			break;
		case HandsetVersionConstant.HANDSET_YTH_SCANNER_SHIPMENT_VERSION_MODE:
			//云天化从web端获取订单
			url = url +"handset_yth_scanner_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_LIQUEUR_VERSION_MODE:
			/*if (Config.isSpecialProt) {
				url = url + "handset_liqueur_8765_update.xml";
			} else {
				url = url + "handset_liqueur_update.xml";
			}*/
			url = url + "handset_liqueur_update.xml";
			break;
		case  HandsetVersionConstant.HANDSET_MEDICINE_XY_VERSION_MODE:
			url = url +"handset_medicineXY_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_COUNTER_VERSION_MODE:
			//专柜销售
			url = url +"handset_counter_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_UNIVERSAL_EGG_VERSION_MODE:
			//鸡蛋通用版
			url = url+"handset_common_plus_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_UNIVERSAL_VERSION_MODE_FARMERS:
			//通用版养殖户
			url = url+"handset_farmers.xml";
			break;	
		case HandsetVersionConstant.HANDSET_LIQUEUR_SFY_VERSION_MODE:
			//世方御
			url = url +"handset_liqueur_sfy_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_YTH_SCANNER_SHIPMENT_PUNIT_VERSION_MODE:
			//云天化扫码发货   货物版
			url = url +"handset_yth_scanner_punit_update.xml";
			break;
		case HandsetVersionConstant.HANDSET_YUN_CAR_VERSION_MODE:
			//汽配仅销售
			url = url +"yuncar_only_sale.xml";
			break;
		case HandsetVersionConstant.HANDSET_KIA_PRODUCT_LINE_VERSION_MODE:
			//起亚汽车
			url = url +"kia_car.xml";
			break;	
		}
		return url2;

	}

}
