|
|
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
+import com.goafanti.common.constant.ErrorConstants;
|
|
|
import com.goafanti.common.dao.AdminMapper;
|
|
|
import com.goafanti.common.dao.JtMessageConsumerMapper;
|
|
|
import com.goafanti.common.dao.JtMessageProducerMapper;
|
|
|
@@ -148,7 +149,10 @@ public class JtMessageProducerServiceImpl extends BaseMybatisDao<JtMessageProdu
|
|
|
}
|
|
|
}
|
|
|
if(mobile.length()>1)mobile=mobile.substring(0, mobile.length()-1);
|
|
|
- MobileMessageUtils.sendMessage(messageCode, null, mobile, accessKey, accessSecret);
|
|
|
+ String ret=MobileMessageUtils.sendMessage(messageCode, null, mobile, accessKey, accessSecret);
|
|
|
+ if (StringUtils.isNotBlank(ret)) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
JtMessageProducer producer=new JtMessageProducer();
|
|
|
producer.setId(UUID.randomUUID().toString());
|
|
|
producer.setCreater(AFTConstants.DEFAULT_INITIATOR);
|