changelog=($options["changelog"])?$options["changelog"]:$options["l"]; if (isset($options["userid"])) $c->userid=$options["userid"]; $v=new Version($c); //avoid params error $c->db['username']=$c->db['user']; $v->zend_db=Zend_Db::factory('PDO_PGSQL',$c->db); //执行专题数据的版本更新 if (isset($options["sourceid"]) || isset($options["s"])) { //$sourceid=4;//hiwater $sourceid=($options["sourceid"])?$options["sourceid"]:$options["s"]; $v->update_by_source($sourceid); } //执行单条数据的版本更新 if (isset($options["uuid"]) || isset($options["u"])) { //$uuid='d6584b27-1e02-4bc7-90d1-8b360d9c69ab'; $uuid=($options["uuid"])?$options["uuid"]:$options["u"]; $v->update_by_uuid($uuid); } //执行符合SQL条件数据的版本更新 if (isset($options["sql"])) { $v->update_by_sql($options["sql"]); } $v->error();