|
|
@@ -33,6 +33,20 @@ class GlobalController extends Controller
|
|
|
ProductClass::allShopStockWarningFromQueue();
|
|
|
}
|
|
|
|
|
|
+ if ((int)date('i') % 30 == 0) {
|
|
|
+ //不知道为什么线上付的结账单,老是会被取消,要恢复回来!!!!!!!!!!!!!!!!!!!!
|
|
|
+ $sql = "update xhClear set status=2 where status=3 and thirdNo!=''";
|
|
|
+ Yii::$app->db->createCommand($sql)->execute();
|
|
|
+ }
|
|
|
+
|
|
|
+ if ($hour == '0030') {
|
|
|
+ //惠雅鲜花 花样年华 显示库存
|
|
|
+ $sql = "UPDATE xhGhsCustom SET showStock=1 WHERE ownShopId IN (520,1489,1585,1596);";
|
|
|
+ Yii::$app->db->createCommand($sql)->execute();
|
|
|
+ $sql = "update xhGhs set showStock=1 where shopId in (520,1489,1585,1596);";
|
|
|
+ Yii::$app->db->createCommand($sql)->execute();
|
|
|
+ }
|
|
|
+
|
|
|
//每3分钟进行已完成支付订单处理:花材销量统计
|
|
|
if ((int)date('i') % 3 == 0) {
|
|
|
|