39 lines
893 B
Python
39 lines
893 B
Python
|
from lib.all import *
|
||
|
|
||
|
s = '''
|
||
|
db.product.insert({
|
||
|
"_id" : "%d_gold",
|
||
|
"name" : "%dx",
|
||
|
"subject" : "发货A",
|
||
|
"desc" : "%dx",
|
||
|
"real_price" : NumberLong(%d),
|
||
|
"ori_price" : NumberLong(%d),
|
||
|
"value_coins" : %d,
|
||
|
"type" : "coins",
|
||
|
"pay_means" : 1,
|
||
|
"price_fix_type" : 1,
|
||
|
"mid" : NumberLong(0),
|
||
|
"dev_type" : 1,
|
||
|
"real_coin_price" : NumberLong(0),
|
||
|
"ori_coin_price" : NumberLong(0),
|
||
|
"del_flag" : 0,
|
||
|
"image_ids" : null,
|
||
|
"video_ids" : null,
|
||
|
"ct" : NumberLong(1702381979),
|
||
|
"ut" : NumberLong(1702381979)
|
||
|
})
|
||
|
'''
|
||
|
|
||
|
# 70_gold
|
||
|
# 350_gold
|
||
|
# 686_gold
|
||
|
# 2086_gold
|
||
|
# 4886_gold
|
||
|
# 6986_gold
|
||
|
# 9086_gold
|
||
|
# 13986_gold
|
||
|
# 20986_gold
|
||
|
lis = [70, 350, 686, 2086, 4886, 6986, 9086, 13986, 20986]
|
||
|
for i in lis:
|
||
|
print(s % (i, i, i, int(i / 0.7 * 10), int(i / 0.7 * 10), i))
|