ck 4 yıl önce
ebeveyn
işleme
734172615e

+ 1 - 1
dgp/tests/conf/db_config.ini

@@ -7,7 +7,7 @@ port=3306
 # 用户名
 user=superc
 # 密码
-password=Cc719199895
+password=Qc_123456
 # 数据库名称
 database=quchen_text
 # 数据库连接池最大连接数

+ 5 - 5
dgp/tests/get_campaign_daily.py

@@ -416,7 +416,7 @@ def daily_qq_reports_get(access_token,account_id,compaign_id,level,start_date,en
 
 
 def mysql_insert_daily_vx_campaign(data):
-    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Cc719199895','quchen_text')
+    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Qc_123456','quchen_text')
     cursor = db.cursor()
     sql = 'replace into daily_vx_campaign (account_id,date,campaign_id,view_count,cost,ctr,cpc,order_roi,thousand_display_price,valid_click_count,official_account_follow_count,conversions_count,official_account_follow_rate,conversions_rate,order_count,order_rate,order_unit_price,first_day_order_amount) values(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s);'
     try:
@@ -428,7 +428,7 @@ def mysql_insert_daily_vx_campaign(data):
         print('insert [daily_vx_campaign] defeat')
 
 def mysql_insert_campaign_vx(data):
-    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Cc719199895','quchen_text')
+    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Qc_123456','quchen_text')
     cursor = db.cursor()
     sql = 'replace into campaign_vx (campaign_id,campaign_name,configured_status,campaign_type,promoted_object_type,daily_budget,created_time,last_modified_time,account_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s)'
 
@@ -442,7 +442,7 @@ def mysql_insert_campaign_vx(data):
 
 
 def mysql_insert_adcreative(data):
-    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Cc719199895','quchen_text')
+    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Qc_123456','quchen_text')
     cursor = db.cursor() 
 
     sql = 'replace into adcreative (campaign_id,adcreative_id,adcreative_name,image_id,title,promoted_object_type,page_type,page_id,link_page_id,promoted_object_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)'
@@ -457,7 +457,7 @@ def mysql_insert_adcreative(data):
 
 
 def mysql_insert_image(data):
-    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Cc719199895','quchen_text')
+    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Qc_123456','quchen_text')
     cursor = db.cursor()
     sql = 'replace into image (image_id,preview_url,account_id) values (%s,%s,%s)'
     try:
@@ -544,7 +544,7 @@ def get_daily_qq_campaign(st,et):
 
 
 def get_campaign_update_list():
-    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Cc719199895','quchen_text')
+    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Qc_123456','quchen_text')
     cursor = db.cursor()
     sql = 'select distinct advertiser_vx.account_id,access_token,campaign_id from campaign_vx left join advertiser_vx on advertiser_vx.account_id = campaign_vx.account_id where created_time>=%s or last_modified_time>=%s'
     data = (int((time.time()+8*3600)//86400*86400-8*3600-86400),int((time.time()+8*3600)//86400*86400-8*3600-86400))

+ 3 - 3
dgp/tests/get_data_hourly.py

@@ -83,7 +83,7 @@ def get_v_data(y,li):
 			x = tuple(d.values())
 			li.append(x)
 def mysql_select(sql):
-	db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Cc719199895', 'quchen_text')
+	db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Qc_123456', 'quchen_text')
 	cur=db.cursor()
 	cur.execute(sql)
 	data=cur.fetchall()
@@ -145,7 +145,7 @@ def get_daily_qq():
 
 
 def mysql_insert_daily_vx(data):
-	db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Cc719199895', 'quchen_text')
+	db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Qc_123456', 'quchen_text')
 	cursor = db.cursor()
 	time1 = time.time()
 
@@ -162,7 +162,7 @@ def mysql_insert_daily_vx(data):
 
 
 def mysql_insert_daily_qq(data):
-	db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Cc719199895', 'quchen_text')
+	db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Qc_123456', 'quchen_text')
 	cursor = db.cursor()
 	time1 = time.time()
 

+ 1 - 1
dgp/tests/userchanges_daily.py

@@ -439,7 +439,7 @@ def get_user_change(token,st,et,channel):
     return t 
 
 def mysql_insert_userchanges(data,channel):
-    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Cc719199895','quchen_text')
+    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com','superc','Qc_123456','quchen_text')
     cursor = db.cursor() 
     sql = 'insert ignore into userchanges(reg_date,user_source,new_user,cancel_user,cumulate_user,channel) values (%s,%s,%s,%s,%s,%s)'
     try:

+ 1 - 1
dgp/tests/util/db_order_util.py

@@ -60,7 +60,7 @@ def get_platform_order_count(date):
 
 def get_account_info_list(platform):
     sql=f"select text from order_account_text where platform='{platform}'"
-    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Cc719199895', 'quchen_text')
+    db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Qc_123456', 'quchen_text')
     cur=db.cursor()
     try:
         cur.execute(sql)