getFind(array('identification' => $post['identification'])); if (!empty($plug)) { echo 'the plug-in already exists'; exit; } $item = array( 'plug_name' => $post['name'], 'icon_url' => $post['img'], 'information' => $post['brief_introduction'], 'identification' => $post['identification'], 'private_key' => $post['key'], 'version' => $post['version'], 'addtime' => time(), 'origin_type' => 2, 'is_install' => 0, 'class_id' => 8, 'type' => 1, 'status' => 1, ); $add = $PlugModel->addOrder($item); if ($add) { echo 'success'; } else { echo 'insert fail'; } } else { echo 'sign fail'; } } }