Ver Fonte

优惠券资产

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

+ 5 - 0
console/controllers/UpgradeController.php

@@ -964,6 +964,11 @@ UPDATE `xhAdmin` SET id=18529,merchantId=12359,roleId=684 WHERE id=3;
 UPDATE `xhAdmin` SET id=18528,merchantId=12358,roleId=683 WHERE id=1;";
 		Yii::$app->db->createCommand($sql)->execute();
 		
+		//优惠券的资产信息
+		$time = time();
+		$sql = "insert into xhCouponAsset values(null,12358,1,30,280,7,0,0,0,0,{$time}),(null,12359,1,30,280,7,0,0,0,0,{$time}),(null,12360,1,30,280,7,0,0,0,0,{$time}),(null,12361,1,30,280,7,0,0,0,0,{$time})";
+		Yii::$app->db->createCommand($sql)->execute();
+
 		$sql = "update xhMerchant set adminId=18528 where id=12358;update xhMerchant set adminId=18529 where id=12359;update xhMerchant set adminId=18530 where id=12360;update xhMerchant set adminId=18531 where id=12361;";
 		Yii::$app->db->createCommand($sql)->execute();