jcresponse.java

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

JAVA
44
字号
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 JCResponse extends Response
{
  public JCResponse()
  {
  }
  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)[2];
   return res;

 }

  public static void main(String[] args)
  {
    JCResponse JCResponse1 = new JCResponse();
  }

}

⌨️ 快捷键说明

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