|
|
@@ -976,59 +976,12 @@ ALTER TABLE `xhMerchantCapital` MODIFY `io` TINYINT NOT NULL DEFAULT 0 COMMENT '
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//重新拉取并保存国兰客户的头像和图片 shish 2020.1.12
|
|
|
public function actionSyncAvatar()
|
|
|
{
|
|
|
-
|
|
|
- //统计相关
|
|
|
- //xhStatIncomeMonth
|
|
|
- $list = StatIncomeMonthService::getAllByCondition([], null, '*');
|
|
|
- if (!empty($list)) {
|
|
|
- foreach ($list as $val) {
|
|
|
- $year = $val['year'];
|
|
|
- $month = $val['month'];
|
|
|
- $date = date("Ym", strtotime($year . '-' . $month . '-' . '1'));
|
|
|
- $id = $val['id'];
|
|
|
- StatIncomeMonthService::updateById($id, ['time' => $date]);
|
|
|
- }
|
|
|
- }
|
|
|
- //xhStatIncomeSourceMonth
|
|
|
- $list = StatIncomeSourceMonthService::getAllByCondition([], null, '*');
|
|
|
- if (!empty($list)) {
|
|
|
- foreach ($list as $val) {
|
|
|
- $year = $val['year'];
|
|
|
- $month = $val['month'];
|
|
|
- $date = date("Ym", strtotime($year . '-' . $month . '-' . '1'));
|
|
|
- $id = $val['id'];
|
|
|
- StatIncomeSourceMonthService::updateById($id, ['time' => $date]);
|
|
|
- }
|
|
|
- }
|
|
|
- //xhStatOrder
|
|
|
- $list = StatOrderService::getAllByCondition([], null, '*');
|
|
|
- if (!empty($list)) {
|
|
|
- foreach ($list as $val) {
|
|
|
- $id = $val['id'];
|
|
|
- $date = date("Ymd", $val['time']);
|
|
|
- StatOrderService::updateById($id, ['time' => $date]);
|
|
|
- }
|
|
|
- }
|
|
|
- //xhStatOrderMonth
|
|
|
- $list = StatOrderMonthService::getAllByCondition([], null, '*');
|
|
|
- if (!empty($list)) {
|
|
|
- foreach ($list as $val) {
|
|
|
- $year = $val['year'];
|
|
|
- $month = $val['month'];
|
|
|
- $date = date("Ym", strtotime($year . '-' . $month . '-' . '1'));
|
|
|
- $id = $val['id'];
|
|
|
- StatOrderMonthService::updateById($id, ['time' => $date]);
|
|
|
- }
|
|
|
- }
|
|
|
- die;
|
|
|
-
|
|
|
UserService::syncAvatar(12358);
|
|
|
}
|
|
|
|