public function view_ebayFeedbackRequestChange() { $account = isset($_GET['account']) ? post_check($_GET['account']) : ''; $ebayUserId = isset($_GET['ebayUserId']) ? post_check($_GET['ebayUserId']) : ''; $modify_status = isset($_GET['modify_status']) ? post_check($_GET['modify_status']) : ''; $add_start_time = isset($_GET['add_start_time']) ? post_check($_GET['add_start_time']) : ''; $add_end_time = isset($_GET['add_end_time']) ? post_check($_GET['add_end_time']) : ''; $this->smarty->assign('account', $account); $this->smarty->assign('ebayUserId', $ebayUserId); $this->smarty->assign('modify_status', $modify_status); $this->smarty->assign('add_start_time', $add_start_time); $this->smarty->assign('add_end_time', $add_end_time); $where = 'where is_delete = 0'; if ($account != '') { $where .= " and account = '{$account}'"; } if ($ebayUserId != '') { $where .= " and ebayUserId = '{$ebayUserId}'"; } if ($modify_status != '') { $where .= " and modifyStatus = '{$modify_status}'"; } if ($add_start_time != '') { $where .= " and addTime >= '" . strtotime($add_start_time) . "'"; } if ($add_end_time != '') { $where .= " and addTime <= '" . strtotime($add_end_time) . "'"; } $FBAct = new EbayFeedbackAct(); $total = $FBAct->act_getRequestChangeNum($where); $num = 50; //每页显示的个数 $page = new Page($total, $num, '', 'CN'); $where .= " order by id desc " . $page->limit; $fbkList = $FBAct->act_getRequestChangeList('*', $where); if (!empty($_GET['page'])) { if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) { $n = 1; } else { $n = (intval($_GET['page']) - 1) * $num + 1; } } else { $n = 1; } if ($total > $num) { //输出分页显示 $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9)); } else { $show_page = $page->fpage(array(0, 2, 3)); } $this->smarty->assign('show_page', $show_page); $this->smarty->assign('fbkList', $fbkList); $accAct = new AccountAct(); $accountList = $accAct->act_getAccountList('id,account', 'where platformId = 1 and is_delete = 0'); $this->smarty->assign('accountList', $accountList); $this->smarty->assign('state', $state); $this->smarty->assign('secnev', '1'); //二级导航 $this->smarty->assign('module', 'SKU等待领取'); $this->smarty->assign('username', $_SESSION['userName']); //$navarr = array("<a href='index.php?mod=FeedbackManage&act=fbkList'>卖家评价</a>",">>","评价列表"); //$this->smarty->assign('navarr',$navarr); $this->smarty->display('ebayFeedbackRequestChange.htm'); }
exit("Usage: /usr/bin/php {$argv['0']} eBayAccount"); } $startTime = strtotime(date('Y-m-d 08:00:00')); $endTime = strtotime(date('Y-m-d 09:30:00')); $nowTime = strtotime(date('Y-m-d H:i:s')); if ($nowTime > $startTime && $nowTime < $endTime) { exit('此时间段不执行'); } $ebay_account = trim($argv[1]); global $devID, $appID, $certID, $serverUrl, $siteID, $detailLevel, $compatabilityLevel, $dbcon, $user; $accAct = new AccountAct(); $accountInfo = $accAct->act_getAccountList('token', "where account = '{$ebay_account}' and is_delete = 0"); $token = $accountInfo[0]['token']; $verb = 'GetFeedback'; $FBAct = new EbayFeedbackAct(); $info = $FBAct->act_getRequestChangeList('*', " where modifyStatus=0 and account='{$ebay_account}'"); $count1 = count($info); for ($kk = 0; $kk < $count1; $kk++) { $id = $info[$kk]['id']; echo "-----update fb_request_change_ebay {$id}----\n"; $ebay_userid = trim($info[$kk]['ebayUserId']); $where = " where account='{$ebay_account}' and CommentingUser ='******' and (CommentType='Neutral' or CommentType='Negative') "; $field = " FeedbackID,CommentText,CommentingUser,ItemID,TransactionID,CommentType "; $get_info = $FBAct->act_getOrderList($field, $where); $orderNum = count($get_info); for ($ii = 0; $ii < $orderNum; $ii++) { $status = ""; $feedbackID = $get_info[$ii]['FeedbackID']; $commentingUser = $get_info[$ii]['CommentingUser']; $itemID = $get_info[$ii]['ItemID']; $transactionID = $get_info[$ii]['TransactionID'];
$_SESSION['user'] = $user; error_reporting(0); require_once 'config1.php'; require_once 'ebay_order_cron_config.php'; require_once 'ebaylibrary/eBaySession.php'; if ($argc != 3) { exit("Usage: /usr/bin/php {$argv['0']} eBayAccount userid"); } $ebay_account = trim($argv[1]); $userid = trim($argv[2]); global $devID, $appID, $certID, $serverUrl, $siteID, $detailLevel, $compatabilityLevel, $dbcon, $user; $accAct = new AccountAct(); $accountInfo = $accAct->act_getAccountList('token', "where account = '{$ebay_account}' and is_delete = 0"); $token = $accountInfo[0]['token']; $FBAct = new EbayFeedbackAct(); $info = $FBAct->act_getRequestChangeList('*', " where modifyStatus=0 and ebayUserId='{$userid}'"); $count1 = count($info); $verb = 'GetFeedback'; for ($kk = 0; $kk < $count1; $kk++) { $id = $info[$kk]['id']; $ebay_userid = $info[$kk]['ebayUserId']; $ebay_account = $info[$kk]['account']; $where = " where account='{$ebay_account}' and CommentingUser ='******' and (CommentType='Neutral' or CommentType='Negative') "; $field = " FeedbackID,CommentText,CommentingUser,ItemID,TransactionID,CommentType "; $get_info = $FBAct->act_getOrderList($field, $where); $orderNum = count($get_info); for ($ii = 0; $ii < $orderNum; $ii++) { $status = ""; $feedbackID = $get_info[$ii]['FeedbackID']; $commentingUser = $get_info[$ii]['CommentingUser']; $itemID = $get_info[$ii]['ItemID'];