Commit 332ee2ea authored by zhangyingbin's avatar zhangyingbin

优化 设置发送短信参数 方法

parent ea5dbccb
......@@ -156,7 +156,9 @@ public class ProblemInitiationServiceImpl {
*/
public void sendSms(JSONObject object, String smsCode){
Long sequenceNbr = object.getLong("sequenceNbr");
object.put("projectName",projectServiceImpl.getById(object.getLong("projectId")).getName());
if(ValidationUtil.isEmpty(object.getString("projectName"))) {
object.put("projectName", projectServiceImpl.getById(object.getLong("projectId")).getName());
}
//设置短信发送的基本参数
HashMap<String, String> smsParams = new HashMap();
smsParams.put("smsCode", smsCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment