Authored by whb

onlinereg

... ... @@ -72,7 +72,7 @@ class Controller_Onlinereg extends Controller_Abstract
$is_3c = $this->_request->post('is_3c');
$website = $this->_request->post('website');
$zipcode = $this->_request->post('zipcode');
$files = array();
$files = trim($this->_request->post('files'));
if($type == Facade_Onlinereg::TYPE_ONLINE_SPONSOR)//赞助商
{
if(empty($name) || empty($contact)|| empty($place))
... ... @@ -96,14 +96,11 @@ class Controller_Onlinereg extends Controller_Abstract
}
if(in_array($type, array(Facade_Onlinereg::TYPE_ONLINE_SPONSOR, Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR)))
{
if(!empty($_FILES))
{
$path = Lib_Images::saveImage($_FILES, 'onlinereg');
if(!empty($path))
{
$files[] = $path;
}
}
$files = array($files);
}
else
{
$files = '';
}
$status = Facade_Onlinereg::setSellerInfo($name, $type, 0, $is_enter_yohobuy,
$product_type, $country, $company, $contact, $telphone, $email, 0, $website, 0, $place, $files);
... ... @@ -186,7 +183,11 @@ class Controller_Onlinereg extends Controller_Abstract
public function validatecodeAction()
{
$code = $this->_request->query('code');
$status = $this->validate($code);
$status = false;
if(!empty($code))
{
$status = $this->validate($code);
}
if($status)
{
return $this->returnJson(true, 200);
... ...