Exemplo n.º 1
0
 /**
  * 再次发送报备邮件
  * @param $id
  */
 public function resend_baobei_email($id)
 {
     $service = new AD();
     $passed = $service->check_baobei_pass($id);
     if ($passed) {
         $this->output(array('code' => 0, 'msg' => '改广告已经完成报备,无需再发邮件'));
     }
     $info = $service->get_ad_info(array('id' => $id), 0, 1);
     $check = $this->baobei($_REQUEST['email'], $info);
     if ($check) {
         $this->output(array('code' => 0, 'msg' => '已重新发送报备邮件'));
     } else {
         $this->exit_with_error(1, '发送报备邮件失败,请稍后重试。', 400);
     }
 }