Authored by whb

修改搜索

... ... @@ -235,6 +235,15 @@ class HomeModel
if ($val['price'] == false) {
$val['price'] = $val['salePrice'];
}
//TODO 字段要调整
$val['tags']['isFew'] = $val['is_soon_sold_out'];
$val['tags']['isLimit'] = $val['tags']['is_discount'];
$val['tags']['is_discount'] = $val['is_soon_sold_out'];
$val['tags']['isNew'] = $val['tags']['is_new'];
$val['tags']['isYearMidPromotion'] = $val['tags']['midYear'];
$val['tags']['isYearEndPromotion'] = $val['tags']['yearEnd'];
unset($val['tags']['is_advance'], $val['tags']['is_discount'], $val['tags']['is_limited'], $val['tags']['is_new'],
$val['tags']['is_yohood'], $val['tags']['midYear'], $val['tags']['yearEnd']);
if (! empty($val)) {
$result[] = $val;
}
... ...
... ... @@ -154,11 +154,11 @@ class RegisterController extends WebAction
*/
public function mobileregisterAction()
{
$mobile = trim($this->post('phoneNum'), ' ');//mobile
$area = intval(trim($this->post('region'), ' '));//area
$mobile = trim($this->post('mobile'), ' ');//mobile
$area = intval(trim($this->post('area'), ' '));//area
$verifyCode = strtolower(trim($this->post('captcha'),' '));//captcha
$code = trim($this->post('msgCaptcha'),'');//code
$password = $this->post('pwd');
$code = trim($this->post('code'),'');//code
$password = $this->post('password');
$url = '/passport/register/index';
$refer = $this->getCookie('refer');
$data = array('code' => 400, 'message' => '', 'data' => '');
... ...