上线前版本

mobile-first
赵鹏 6 years ago
parent aa9b9b5114
commit 0a1fd5383e

@ -9,13 +9,16 @@ class getbokun extends CI_Controller
public function __construct()
{
parent::__construct();
$this->permission->is_admin();
$this->load->library("Bokun_lib");
$this->load->model("tpBokun_model");
$this->load->view('bootstrap3/footer');
}
public function index()
{
//echo "bokun数据导入页面";
$this->load->view('bootstrap3/header');
$this->load->view('getindex');
}
@ -172,7 +175,7 @@ class getbokun extends CI_Controller
//先判断是否是新产品
$checkNewUrl = $this->webUrl . "/guide.php/thirdparty/tpmanage/webgetbokun/checkActivityId/$activityId/";
$checkNewUrl = $this->webUrl . "/info.php/thirdparty/tpmanage/webgetbokun/checkActivityId/$activityId/";
$checkNew = json_decode($this->tpBokun_model->getCrulData($checkNewUrl));
if ($checkNew->return == "yes" && $OverWrive == false) {
return;
@ -186,7 +189,7 @@ class getbokun extends CI_Controller
$PassParam["CityName"] = $CityName;
$PassParam["checkCode"] = $checkCode;
$strPass = base64_encode(json_encode($PassParam));
$AddUrl = $this->webUrl . "/guide.php/thirdparty/tpmanage/webgetbokun/addActivity/$strPass/";
$AddUrl = $this->webUrl . "/info.php/thirdparty/tpmanage/webgetbokun/addActivity/$strPass/";
$addInfo = json_decode($this->tpBokun_model->getCrulData($AddUrl));
//echo($addInfo);
@ -218,7 +221,7 @@ class getbokun extends CI_Controller
*/
function checkAllCity()
{
$url = "/guide.php/thirdparty/tpmanage/webgetbokun/checkAllCity/";
$url = "/info.php/thirdparty/tpmanage/webgetbokun/checkAllCity/";
$str = $this->tpBokun_model->getCrulData($url);
echo $str;
}
@ -261,7 +264,7 @@ class getbokun extends CI_Controller
//解析后获取需要的参数
$activityId = $activityData->id; //产品的activityId可以获取对应的产品详细内容。
//先判断是否是新产品
$checkNewUrl = $this->webUrl . "/guide.php/thirdparty/tpmanage/webgetbokun/checkActivityId/$activityId/";
$checkNewUrl = $this->webUrl . "/info.php/thirdparty/tpmanage/webgetbokun/checkActivityId/$activityId/";
$checkNew = json_decode($this->tpBokun_model->getCrulData($checkNewUrl));
if ($checkNew->return == "yes") {
continue;

@ -21,7 +21,7 @@ class TpBokun_model extends CI_Model
function getInfomationAll($guideurl)
{
// $sql = "select top 1 * from infoContents a inner join infoStructures b on a.ic_id=b.is_ic_id where ic_URL='".$guideurl."' and ic_status=1 and is_siteCode='ct'";
$sql = "select top 1 * from infoContents a inner join infoStructures b on a.ic_id=b.is_ic_id where ic_URL='" . $guideurl . "' and is_siteCode='" . Site_Code . "'";
$sql = "select top 1 * from infoContents a inner join infoStructures b on a.ic_id=b.is_ic_id where ic_URL='" . $guideurl . "' and is_siteCode='trippest'";
$query = $this->HT->query($sql);
if ($query->num_rows() > 0) {
return $query->row();

Loading…
Cancel
Save