|
|
@@ -39,12 +39,21 @@ class ItemController extends BaseController {
|
|
|
$this->display ();
|
|
|
|
|
|
}else{
|
|
|
- $item_name = I("item_name");
|
|
|
+ $item_name = I("item_name");
|
|
|
+ $item_domain = I("item_domain");
|
|
|
+
|
|
|
+ if(!ctype_alnum($item_domain)){
|
|
|
+ //echo '个性域名只能是字母或数字的组合';exit;
|
|
|
+ $this->message(L('item_domain_illegal'));
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
$password = I("password");
|
|
|
$item_description = I("item_description");
|
|
|
if ($item_id > 0 ) {
|
|
|
$data = array(
|
|
|
"item_name" => $item_name ,
|
|
|
+ "item_domain" => $item_domain ,
|
|
|
"password" => $password ,
|
|
|
"item_description" => $item_description ,
|
|
|
);
|
|
|
@@ -56,6 +65,7 @@ class ItemController extends BaseController {
|
|
|
"item_name" => $item_name ,
|
|
|
"password" => $password ,
|
|
|
"item_description" => $item_description ,
|
|
|
+ "item_domain" => $item_domain ,
|
|
|
"addtime" =>time()
|
|
|
);
|
|
|
$ret = D("Item")->add($insert);
|