예제 #1
0
 /**
  * CarrierProNodeAct::actModify()
  * 返回某个运输方式处理节点的信息
  * @param int $id 查询ID
  * @return array 
  */
 public function actModify()
 {
     $data = array();
     $id = isset($_GET['id']) ? intval(trim($_GET['id'])) : 0;
     if (empty($id)) {
         show_message($this->smarty, "ID不能为空?", "");
         return false;
     }
     $data['id'] = $id;
     $data['lists'] = TransOpenApiModel::getCarrier(2);
     $data['res'] = CarrierProNodeModel::modModify($id);
     self::$errCode = CarrierProNodeModel::$errCode;
     self::$errMsg = CarrierProNodeModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         return false;
     }
     return $data;
 }