shish il y a 6 ans
Parent
commit
a91dd79777
1 fichiers modifiés avec 9 ajouts et 3 suppressions
  1. 9 3
      console/controllers/UpgradeController.php

+ 9 - 3
console/controllers/UpgradeController.php

@@ -1281,10 +1281,10 @@ ALTER TABLE `xhUserGrowth` DROP COLUMN `capitalType`;";
 				}
 			}
 		}
-		
-		//更新头像
+
+		//头像丢失了更新头像
 		UserService::syncAvatar(12358);
-		
+
 	}
 	
 	//微信菜单初始化或重置,可以重复执行 shish 2020.3.5
@@ -1301,5 +1301,11 @@ ALTER TABLE `xhUserGrowth` DROP COLUMN `capitalType`;";
 		UserService::deleteByCondition(['merchantId' => $id]);
 		UserService::syncWxAllUser($id);
 	}
+
+	//更新头像 shish 2020.3.10
+	public function actionUpdateAvatar($id)
+	{
+		UserService::syncAvatar($id);
+	}
 	
 }