dev
parent
4b8172c1fb
commit
4692d04fff
|
|
@ -58,6 +58,10 @@ public class OssfileLogService {
|
||||||
|
|
||||||
public void checkUploadStatus(){
|
public void checkUploadStatus(){
|
||||||
List<OssfileLog> logs = OssfileLog.dao.find("select * from ossfile_log t where t.state = 0 limit 10");
|
List<OssfileLog> logs = OssfileLog.dao.find("select * from ossfile_log t where t.state = 0 limit 10");
|
||||||
|
if(logs.isEmpty()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List<OssfileLog> ups = new ArrayList<>();
|
List<OssfileLog> ups = new ArrayList<>();
|
||||||
|
|
||||||
log.debug("有 %s 张图片需要传到 oss", logs.size());
|
log.debug("有 %s 张图片需要传到 oss", logs.size());
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ socketserver.port=21002
|
||||||
socketio.port=12002
|
socketio.port=12002
|
||||||
|
|
||||||
#当前部署本地程序的砂站id
|
#当前部署本地程序的砂站id
|
||||||
current.supermarket_id=1
|
current.supermarket_id=6
|
||||||
|
|
||||||
#打印用到的配置信息
|
#打印用到的配置信息
|
||||||
print.vendor=浠水县长投环保有限公司
|
print.vendor=浠水县长投环保有限公司
|
||||||
|
|
|
||||||
|
|
@ -284,6 +284,10 @@ public class Config extends JFinalConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isDev(){
|
||||||
|
return "dev".equals(ENV);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断当前是 开发 环境,还是 生产 环境
|
* 判断当前是 开发 环境,还是 生产 环境
|
||||||
* 根据不同的环境变量读取不同数据库连接
|
* 根据不同的环境变量读取不同数据库连接
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import com.cowr.model.Ordercluster;
|
||||||
import com.cowr.model.SmsLog;
|
import com.cowr.model.SmsLog;
|
||||||
import com.cowr.model.Supermarket;
|
import com.cowr.model.Supermarket;
|
||||||
import com.cowr.model.Sysuser;
|
import com.cowr.model.Sysuser;
|
||||||
|
import com.cowr.service.ssjygl.main.Config;
|
||||||
import com.cowr.service.ssjygl.main.SvrCacheData;
|
import com.cowr.service.ssjygl.main.SvrCacheData;
|
||||||
import com.cowr.sms.AliyunSmsService;
|
import com.cowr.sms.AliyunSmsService;
|
||||||
import com.jfinal.kit.StrKit;
|
import com.jfinal.kit.StrKit;
|
||||||
|
|
@ -96,8 +97,11 @@ public class SmsService {
|
||||||
|
|
||||||
for (Sysuser sysuser : users) {
|
for (Sysuser sysuser : users) {
|
||||||
try {
|
try {
|
||||||
// String phone = sysuser.getPhone();
|
String phone = sysuser.getPhone();
|
||||||
String phone = "13627293906";
|
|
||||||
|
if(Config.isDev()){
|
||||||
|
phone = "13627293906";
|
||||||
|
}
|
||||||
|
|
||||||
log.debug("给 %s 发送短信", phone);
|
log.debug("给 %s 发送短信", phone);
|
||||||
|
|
||||||
|
|
@ -143,6 +147,9 @@ public class SmsService {
|
||||||
|
|
||||||
public void checkSendStatus() {
|
public void checkSendStatus() {
|
||||||
List<SmsLog> logs = SmsLog.dao.find("select * from sms_log t where t.code = 'OK' and t.sendstatus < 2 limit 500");
|
List<SmsLog> logs = SmsLog.dao.find("select * from sms_log t where t.code = 'OK' and t.sendstatus < 2 limit 500");
|
||||||
|
if(logs.isEmpty()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
log.debug("检查 %s 短信发送状态", logs.size());
|
log.debug("检查 %s 短信发送状态", logs.size());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue