public function cutsupplyexamine()
 {
     $shares_id = M('shares_additional')->getFieldByid($_POST['id'], "shares_id");
     $uid = M("shares_apply")->getFieldByid($shares_id, "uid");
     if (!getWantApply($shares_id)) {
         $this->error('该配资已经申请停止操盘,请优先处理停止操盘申请!');
     }
     if ($this->_post("status") == 2) {
         //审核通过
         $id = $this->_post("id");
         $money = $this->_post('money');
         $savedata['id'] = $this->_post("id");
         $savedata['status'] = $this->_post("status");
         $savedata['examine_time'] = time();
         $res = M("shares_supply")->save($savedata);
         if ($res) {
             $ret = tradecutexamine($id);
             if ($ret) {
                 alogs("supplyexamine", 0, 1, '管理员执行了股票配资减少实盘申请审核操作成功!');
                 $this->success("审核完成!");
             }
         } else {
             alogs("supplyexamine", 0, 1, '管理员执行了股票配资减少实盘申请审核操作失败!');
             $this->error("审核操作失败,请重试!");
         }
     } elseif ($this->_post("status") == 3) {
         //审核未通过
         $id = $this->_post("id");
         if (supplyenopass($id)) {
             $savedata['id'] = $this->_post("id");
             $savedata['status'] = $this->_post("status");
             $savedata['examine_time'] = time();
             $res = M("shares_supply")->save($savedata);
             if ($res) {
                 $this->success("审核完成!");
             } else {
                 $this->error("审核操作失败,请重试!");
             }
         } else {
             $this->error("审核操作失败,请重试!");
         }
     } else {
         $this->error("非法请求!");
     }
 }
 public function supplyexamine()
 {
     $info = $_POST['info'];
     $uid = M('shares_supply')->getFieldByid($_POST, "uid");
     $user = M("members")->find($uid);
     $shares_id = M('shares_apply')->getFieldByid($this->_post("id"), 'shares_id');
     if (!getWantApply($shares_id)) {
         $this->error('该配资已经申请停止操盘,请优先处理停止操盘申请!');
     }
     if ($this->_post("status") == 2) {
         $id = $this->_post("id");
         $savedata['id'] = $this->_post("id");
         $savedata['status'] = $this->_post("status");
         $savedata['examine_time'] = time();
         $res = M("shares_supply")->save($savedata);
         if ($res) {
             $ret = daysupply($id);
             if ($ret) {
                 $info = '您在手投网申请资金补充审核通过!【手投网】';
                 sendsms($user['user_phone'], $info);
                 alogs("supplyexamine", 0, 1, '管理员执行了股票配资补充实盘申请审核操作成功!');
                 $this->success("审核完成!");
             }
         } else {
             alogs("supplyexamine", 0, 1, '管理员执行了股票配资补充实盘申请审核操作失败!');
             $this->error("审核操作失败,请重试!");
         }
     } elseif ($this->_post("status") == 3) {
         $savedata['id'] = $this->_post("id");
         $savedata['status'] = $this->_post("status");
         $savedata['examine_time'] = time();
         $res = M("shares_supply")->save($savedata);
         if ($res) {
             $info = '您在手投网申请资金补充审核未通过,原因为' . $info . '!【手投网】';
             sendsms($user['user_phone'], $info);
             $this->success("审核完成!");
         } else {
             $this->error("审核操作失败,请重试!");
         }
     } else {
         $this->error("非法请求!");
     }
 }
 public function doaddexamine()
 {
     $shares_id = M('shares_apply')->getFieldByid($this->_post("id"), 'shares_id');
     if (!getWantApply($shares_id)) {
         $this->error('该配资已经申请停止操盘,请优先处理停止操盘申请!');
     }
     if ($this->_post("status") == 2) {
         $id = $this->_post("id");
         $savedata['id'] = $this->_post("id");
         $savedata['status'] = $this->_post("status");
         $savedata['examine_time'] = time();
         $res = M("shares_additional")->save($savedata);
         if ($res) {
             $ret = examinemonthadd($id, $this->_post("info"));
             if ($ret) {
                 alogs("addexamine", 0, 1, '管理员执行了股票配资追加申请审核操作成功!');
                 $this->success("审核完成!");
             }
         } else {
             alogs("addexamine", 0, 1, '管理员执行了股票配资追加申请审核操作失败!');
             $this->error("审核操作失败,请重试!");
         }
     } elseif ($this->_post("status") == 3) {
         $savedata['id'] = $this->_post("id");
         $savedata['status'] = $this->_post("status");
         $savedata['examine_time'] = time();
         $res = M("shares_additional")->save($savedata);
         if ($res) {
             $this->success("审核完成!");
         } else {
             $this->error("审核操作失败,请重试!");
         }
     } else {
         $this->error("非法请求!");
     }
 }