/** * 异步改变邮件发送状态 * tags * @param unknowtype * @return return_type * @author xuzhaoyang * @date 2014-6-25下午8:44:47 * @version v1.0.0 */ public function view_ajaxChangeMailStatus() { $id = isset($_POST['id']) ? $_POST['id'] : ''; $status = isset($_POST['status']) ? $_POST['status'] : ''; $buyerObj = new sendEbayCaseMailModel(); $result = $buyerObj->changeEmailStatus($id, $status); if ($result) { echo json_encode(array('CODE' => '110', 'MSG' => '修改成功')); } else { echo json_encode(array('CODE' => '111', 'MSG' => '修改失败')); } }
<?php date_default_timezone_set('Asia/Shanghai'); include_once __DIR__ . '/../framework.php'; // 加载框架 Core::getInstance(); // 初始化框架对象 include_once WEB_PATH . 'crontab/scriptcommon.php'; //脚本公共文件 include_once WEB_PATH . 'lib/opensys_functions.php'; include_once WEB_PATH . 'lib/xmlhandle.php'; set_time_limit(0); error_reporting(-1); $jsonp = 1; $where = ''; $Data = new sendEbayCaseMailModel(); $ecm_obj = new EbayCsMailManageModel(); $tpl_obj = new CommonModel('msg_ebaycstpl'); $BuyerList = $Data->getBuyerMsg($where); //根据导入时间的筛选买家信息 $BuyerData = array(); if (isset($BuyerList) && !empty($BuyerList)) { foreach ($BuyerList as $keyData => $valueData) { $years = date("Y"); $months = date("m"); $dates = date("d"); $lastDay = strtotime($years . $months . ($dates - 1) . "000000"); $today = strtotime($years . $months . $dates . "232359"); if ($valueData['create_time'] >= $lastDay && $valueData['create_time'] <= $today) { $BuyerData[] = $valueData; continue;