amount.php
798 Bytes
<?php
set_time_limit(0);
require_once '../QINSBootstrap/Bootstrap.php';
$time = time() - 8 * 84600;
$time1 = date("Ymd", $time);
//$time1 = "20140911";
// $canWithdrawAmount = YHMOrders_Models_Orders_Client::getCanWithdrawBySelleruid($uid, 8);
$list = YHMOrders_Models_Status_Client::getOrderStatusByTime($time1, 600);
foreach ($list as $k => $v) {
YHMOrders_Models_Amount_Client::setAmount($v['order_code'], $v['last_order_amount'], $v['seller_uid'], 2, '订单交易成功', 0);
}
//退货
$time = date("Ymd", time());
//$time = "20140827";
$list1 = YHMOrders_Models_Status_Client::getOrderStatusByTime($time, 900);
foreach ($list as $k => $v) {
YHMOrders_Models_Amount_Client::setAmount($v['order_code'], (0 - $v['last_order_amount']), $v['seller_uid'], 2, '订单退货扣款', 0);
}