jsresponse.java

来自「采用JAVA开发」· Java 代码 · 共 47 行

JAVA
47
字号
package com.gctech.sms.sp.dwzb.rsp;
import com.gctech.sms.sp.dwzb.*;
import com.gctech.augury.util.ProcessUtil;
import com.gctech.augury.bo.SMSProcessIF;

public class JSResponse extends Response
{
  public JSResponse()
  {
  }

  public String getResponse()
  {

    String[] para = super.content.parameter();
    String date = null;
    String type = null;
    if(para == null)
    {

      date = super.now();
      type = "date";
    }
    else
    {
      date = para[0];
      if(date.length() == 8)
        type = "date";
      else if(date.length() == 6)
        type = "month";
      else
        type = "year";
    }

    SMSProcessIF sms = ProcessUtil.getSMSProcessInstance(user.getUserId());
    String res = sms.getUniteFortune(date,type)[3];
    return res;
  }



  public static void main(String[] args)
  {
    JSResponse JSResponse1 = new JSResponse();
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?