|
@@ -14,7 +14,7 @@ class AdvisoryController extends O2oBaseController {
|
|
|
$area = str_replace('string:',"",Yii::app()->request->getParam('area',''));
|
|
|
$homeType = str_replace('string:',"",Yii::app()->request->getParam('homeType',''));
|
|
|
$num = str_replace('string:',"",Yii::app()->request->getParam('num',''));
|
|
|
- $mobile = intval(Yii::app()->request->getParam('mobile'));
|
|
|
+ $mobile = Yii::app()->request->getParam('mobile');
|
|
|
$tech_content = Yii::app()->request->getParam('tech_content','');
|
|
|
if ($name) {
|
|
|
$advisory = new Advisory();
|
|
@@ -35,22 +35,13 @@ class AdvisoryController extends O2oBaseController {
|
|
|
}
|
|
|
//企业服务
|
|
|
public function actionEnterprise(){
|
|
|
- var_dump($_POST);
|
|
|
$name = Yii::app()->request->getParam('user_name','');
|
|
|
$area = str_replace('string:',"",Yii::app()->request->getParam('area',''));
|
|
|
$homeType = str_replace('string:',"",Yii::app()->request->getParam('homeType',''));
|
|
|
$num = str_replace('string:',"",Yii::app()->request->getParam('num',''));
|
|
|
- $mobile = intval(Yii::app()->request->getParam('mobile'));
|
|
|
- $tech_content = Yii::app()->request->getParam('tech_content','');
|
|
|
- $advisory = new Advisory();
|
|
|
- $advisory->user_name = $name;
|
|
|
- $advisory->area = $area;
|
|
|
- $advisory->homeType = $homeType;
|
|
|
- $advisory->num = $num;
|
|
|
- $advisory->area =$area;
|
|
|
- $advisory->tech_content = $tech_content;
|
|
|
+ $mobile = Yii::app()->request->getParam('mobile');
|
|
|
+ $tech_content = str_replace('string:',"",Yii::app()->request->getParam('tech_content',''));
|
|
|
if ($name) {
|
|
|
- exit;
|
|
|
$advisory = new Advisory();
|
|
|
$advisory->user_name = $name;
|
|
|
$advisory->area = $area;
|
|
@@ -61,7 +52,6 @@ class AdvisoryController extends O2oBaseController {
|
|
|
$advisory->status = 0;
|
|
|
$advisory->tech_content = $tech_content;
|
|
|
if ($advisory->save()) {
|
|
|
-
|
|
|
echo '您的咨询已发送成功,请等待我们的企业管家与您联系,温馨提示,一般是一个工作日内,日间致电给您,请留意。';
|
|
|
exit;
|
|
|
}
|
|
@@ -69,10 +59,4 @@ class AdvisoryController extends O2oBaseController {
|
|
|
$this->render('enterprise');
|
|
|
}
|
|
|
|
|
|
- public function actionSaveAdvisory(){
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
}
|