dev
parent
f5504155bd
commit
55baade462
|
|
@ -7,7 +7,6 @@ import com.cowr.model.PrepayCustomer;
|
|||
import com.cowr.service.ssjygl.main.Config;
|
||||
import com.cowr.service.ssjygl.main.SvrCacheData;
|
||||
import com.cowr.service.ssjygl.sms.log.SmsService;
|
||||
import com.cowr.sms.AliyunSmsService;
|
||||
import com.jfinal.kit.StrKit;
|
||||
import com.jfinal.log.Log;
|
||||
import com.jfinal.plugin.activerecord.Db;
|
||||
|
|
@ -274,17 +273,7 @@ public class StatSmsJob implements Job {
|
|||
obj.put("total_weight", String.format("%.2f", dayobj.getBigDecimal("total_weight")));
|
||||
obj.put("total_price", String.format("%.2f", dayobj.getBigDecimal("total_price")));
|
||||
|
||||
// SmsService.me.sendStatAggr(obj);
|
||||
try {
|
||||
AliyunSmsService aliyunsms = new AliyunSmsService();
|
||||
String content = aliyunsms.generator(Const.SMS_TEMP_MAP.get("SMS_212280668"), obj);
|
||||
log.debug(content);
|
||||
String response = aliyunsms.send("13627293906", "SMS_212280668", obj);
|
||||
log.debug(content);
|
||||
log.debug(response);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
SmsService.me.sendStatAggr(obj);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import com.cowr.service.ssjygl.driver.DriverController;
|
|||
import com.cowr.service.ssjygl.invoice.invalidverify.InvoiceInvalidVerifyController;
|
||||
import com.cowr.service.ssjygl.invoice.log.InvoiceLogController;
|
||||
import com.cowr.service.ssjygl.invoice.receive.InvoiceReceiveController;
|
||||
import com.cowr.service.ssjygl.jobs.StatSmsJob;
|
||||
import com.cowr.service.ssjygl.netty.NettyServer;
|
||||
import com.cowr.service.ssjygl.order.invalidverify.OrderInvalidVerifyController;
|
||||
import com.cowr.service.ssjygl.order.ordercluster.OrderclusterController;
|
||||
|
|
@ -298,8 +297,6 @@ public class Config extends JFinalConfig {
|
|||
}
|
||||
|
||||
SyncTaskService.me.start();
|
||||
|
||||
new StatSmsJob().statAggr();
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -507,6 +507,6 @@ public class SmsService {
|
|||
}
|
||||
|
||||
public boolean sendStatAggr(JSONObject obj){
|
||||
return sendStat(obj, Const.TEMP_CODE_AGGR_STAT, 2);
|
||||
return sendStat(obj, Const.TEMP_CODE_AGGR_STAT_2, 2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue