• 大小: 18.5MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-07-13
  • 语言: Java
  • 标签:

资源简介

使用mysql数据库,里面有安装部署说明。数据库脚本和运行说明都在项目里面

资源截图

代码片段和文件信息

package cn.jsprun.api;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
import org.apache.struts.util.MessageResources;
import cn.jsprun.utils.base64;
import cn.jsprun.utils.JspRunConfig;
import com.tenpay.c2c.bean.PayRequest;
import com.tenpay.c2c.helper.PayRequestHelper;
public class Tenpayapi {
public static int JSPRUN_COMMISION=0;
public static int JSPRUN_DIRECTPAY=1;
public static int STATUS_SELLER_SEND=4;
public static int STATUS_WAIT_BUYER=5;
public static int STATUS_TRADE_SUCCESS=7;
public static int STATUS_REFUND_CLOSE=17;
public static String  credit_payurl(String boardurlString chnidString keyString bbnameString jsprun_userssMap creditstransString onlineipint ec_ratioint timestampfloat priceString orderidMessageResources mrLocale locale){
PayRequest payRequest = new PayRequest();
payRequest.setChnid(chnid);
payRequest.setCmdno(12);
payRequest.setEncode_type(“UTF-8“.equals(JspRunConfig.CHARSET)?2:1);
object unit = creditstrans.get(“unit“);
payRequest.setMch_desc(mr.getMessage(locale “credit_forum_payment“)+creditstrans.get(“title“)+“ “+(int)( price * ec_ratio )+“ “+(unit!=null?unit:““)+“ (“+onlineip+“)“);
payRequest.setMch_name(bbname+“ - “+jsprun_userss+“ - “+mr.getMessage(locale “credit_payment“));
payRequest.setMch_price((long)(price*100));
payRequest.setMch_returl(boardurl+“api/notify.jsp?action=ordernotify“);
payRequest.setMch_type(2);
payRequest.setMch_vno(orderid);
payRequest.setNeed_buyerinfo(2);
payRequest.setSeller(chnid);
payRequest.setShow_url(boardurl);
payRequest.setTransport_desc(mr.getMessage(locale “post_trade_transport_virtual“));
payRequest.setTransport_fee(0);
payRequest.setVersion(2);
PayRequestHelper payRequestHelper = new PayRequestHelper(keypayRequest);
return payRequestHelper.getSendUrl();
}
public static String trade_payurl(String boardurlString chnidString keyMapject> payMap tradeMap tradelog){
PayRequest payRequest = new PayRequest();
String seller = trade.get(“account“);
payRequest.setAttach(base64.encode(“tid=“+tradelog.get(“tid“)+“&pid=“+tradelog.get(“pid“)JspRunConfig.CHARSET));
payRequest.setChnid(chnid);
payRequest.setCmdno(12);
payRequest.setEncode_type(“UTF-8“.equals(JspRunConfig.CHARSET)?2:1);
payRequest.setMch_desc(trade.get(“subject“));
payRequest.setMch_name(trade.get(“subject“));
Float price=Float.valueOf(tradelog.get(“baseprice“))*100;
int quantity=Integer.valueOf(tradelog.get(“number“));
payRequest.setMch_price(price.longValue()*quantity);
payRequest.setMch_returl(boardurl+“api/notify.jsp?action=tradenotify“);
int transport=Integer.valueOf(tradelog.get(“transport“));
payRequest.setMch_type(transport==3?2:1);
payRequest.setMch_vno(tradelog.get(“orderid“));
payRequest.setNeed_buyerinfo(2);
payReques

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-06-01 09:28  JspRun!_6.0.0_Source_UTF8\
     目录           0  2011-05-13 17:18  JspRun!_6.0.0_Source_UTF8\source\
     文件        2817  2011-05-16 13:52  JspRun!_6.0.0_Source_UTF8\source\.classpath
     文件         456  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\.myhibernatedata
     文件         304  2011-05-16 13:52  JspRun!_6.0.0_Source_UTF8\source\.mymetadata
     文件         263  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\.mystrutsdata
     文件        1511  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\.project
     目录           0  2011-05-13 17:18  JspRun!_6.0.0_Source_UTF8\source\.settings\
     文件        1040  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件         137  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\.settings\org.eclipse.ltk.core.refactoring.prefs
     目录           0  2011-05-13 17:18  JspRun!_6.0.0_Source_UTF8\source\src\
     文件        8914  2011-05-13 11:59  JspRun!_6.0.0_Source_UTF8\source\src\beanfactory.xml
     目录           0  2011-05-13 17:18  JspRun!_6.0.0_Source_UTF8\source\src\cn\
     目录           0  2011-05-13 17:18  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\
     目录           0  2011-05-13 17:18  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\api\
     文件       12100  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\api\Tenpayapi.java
     目录           0  2011-05-13 17:18  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\
     文件         523  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\AdvertisementsDao.java
     文件         844  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\AttachmentsDao.java
     文件         422  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\AttachtypesDao.java
     文件         327  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\BannedDao.java
     文件         475  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\BbcodesDao.java
     文件         252  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\BuddysDao.java
     文件         684  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\CreditslogDao.java
     文件         447  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\CreditsSetDao.java
     文件        1242  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\CronsDao.java
     文件        1097  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\DatabaseDao.java
     文件         329  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\FaqsDao.java
     文件         506  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\FavoritesDao.java
     文件         501  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\ForumfieldsDao.java
     文件         338  2011-05-13 11:14  JspRun!_6.0.0_Source_UTF8\source\src\cn\jsprun\dao\ForumRecommendDao.java
............此处省略3144个文件信息

评论

共有 条评论

相关资源