|
@@ -101,7 +101,7 @@ class StoreController extends AdminController
|
|
|
$c = new EMongoCriteria();
|
|
|
$c->store_id('==',$store_id);
|
|
|
$tmp = Store::model()->findAll($c);
|
|
|
- if (!empty($tmp)) {
|
|
|
+ if (empty($tmp)) {
|
|
|
CommonFn::requestAjax(false,'门店id已经使用',array());exit;
|
|
|
}
|
|
|
if (!in_array($status ,array(1,2))) {
|