修改邮箱密码
This commit is contained in:
@@ -98,7 +98,7 @@ public class EmailConsumer extends BaseBatch {
|
||||
}
|
||||
|
||||
} else {
|
||||
println "send error ${errorCount}, sleep ${sleepTime / 1000}s ..."
|
||||
println "${mail.receiver_email} send error ${errorCount}, sleep ${sleepTime / 1000}s ..."
|
||||
sleep(sleepTime);
|
||||
}
|
||||
}
|
||||
@@ -168,7 +168,7 @@ public class EmailConsumer extends BaseBatch {
|
||||
email.setHostName(EMAIL_SERVER);
|
||||
email.setSslSmtpPort("465");
|
||||
email.setCharset("GBK")
|
||||
email.setAuthentication("service@fangjia.com", "bRvvVvic8HVgHkCi");
|
||||
email.setAuthentication("service@fangjia.com", "iXWzdL69CnzxksaE");
|
||||
email.addTo(mail.receiverEmail);
|
||||
email.setFrom("service@fangjia.com");
|
||||
email.setSubject(mail.subject);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.fangjia.script.wenyan
|
||||
|
||||
import com.fangjia.core.ProvinceData
|
||||
import com.fangjia.script.util.Jms
|
||||
import com.fangjia.core.util.DateUtil
|
||||
import com.fangjia.core.util.Mongo3Utils
|
||||
import com.fangjia.datastore.driver.DSCollection
|
||||
@@ -11,9 +12,7 @@ import com.fangjia.script.util.ElasticUtils
|
||||
import com.mongodb.client.MongoCollection
|
||||
import org.bson.Document
|
||||
|
||||
MongoCollection<Document> documents = Mongo3Utils.getDbCollection("fangjia", "deal_price")
|
||||
def jms = Jms.create("tcp://jms.db.fangjia.com:61616")
|
||||
|
||||
ProvinceData.getAllCity("º£ÄÏ").each{def it->
|
||||
long c = documents.countDocuments(new Document("city", it).append("trade_date", new Document('$gt', DateUtil.add(new Date(), Calendar.YEAR, -3))))
|
||||
println("${it}\t${c}")
|
||||
}
|
||||
jms.sendMail("1142375881@qq.com", "²âÊÔ", "²âÊÔÄÚÈÝ")
|
||||
println('1111')
|
||||
Reference in New Issue
Block a user