/**
  * 编辑信息
  */
 public function edit()
 {
     if (IS_POST) {
         $wl = ShippingController::get_shipping($_POST['shipping_id']);
         //dump($wl);exit;
         $_POST['shipping_code'] = $wl['code'];
         $_POST['shipping_company'] = $wl['name'];
         $name = CONTROLLER_NAME;
         $model = D($name);
         $_POST['update_time'] = time();
         if (false === $model->create()) {
             $this->error($model->getError());
         }
         // 更新数据
         $list = $model->save();
         if (false !== $list) {
             $this->history($_POST['id']);
             $this->success('编辑成功!');
         } else {
             //错误提示
             $this->error('编辑失败!');
         }
     } else {
         $shippings = ShippingController::lists();
         $this->assign('shippings', $shippings);
         $data['id'] = $_GET['id'];
         $vo = $this->db->where($data)->find();
         $this->assign('vo', $vo);
         $this->display();
     }
 }