Ver Fonte

客户成长值

shish há 6 anos atrás
pai
commit
0b1ca93d10
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      console/controllers/UpgradeController.php

+ 2 - 2
console/controllers/UpgradeController.php

@@ -795,6 +795,7 @@ ALTER TABLE `xhMerchantCapital` MODIFY `io` TINYINT NOT NULL DEFAULT 0 COMMENT '
 		$sql = "ALTER TABLE `xhUserCapital` MODIFY `relateId` INT NOT NULL DEFAULT 0 COMMENT '关联id;订单id';";
 		$sql = "ALTER TABLE `xhUserCapital` MODIFY `relateId` INT NOT NULL DEFAULT 0 COMMENT '关联id;订单id';";
 		Yii::$app->db->createCommand($sql)->execute();
 		Yii::$app->db->createCommand($sql)->execute();
 
 
+		//客户成长值
 		$userGrowth = UserGrowthService::getAllByCondition([],null,'*','relateId');
 		$userGrowth = UserGrowthService::getAllByCondition([],null,'*','relateId');
 		if (!empty($userGrowth)) {
 		if (!empty($userGrowth)) {
 			foreach ($userGrowth as $relateId => $growth) {
 			foreach ($userGrowth as $relateId => $growth) {
@@ -808,10 +809,9 @@ ALTER TABLE `xhMerchantCapital` MODIFY `io` TINYINT NOT NULL DEFAULT 0 COMMENT '
 				}
 				}
 			}
 			}
 		}
 		}
-		$sql = "ALTER TABLE `xhUserCapital` MODIFY `relateId` INT NOT NULL DEFAULT 0 COMMENT '关联id';";
+		$sql = "ALTER TABLE `UserGrowthService` MODIFY `relateId` INT NOT NULL DEFAULT 0 COMMENT '关联id';";
 		Yii::$app->db->createCommand($sql)->execute();
 		Yii::$app->db->createCommand($sql)->execute();
 
 
-		
 		if ($num == 2) {
 		if ($num == 2) {
 			$this->actionInit2();
 			$this->actionInit2();
 		}
 		}