0

0

Java实现微信公众号和扫码支付的案例

Y2J

Y2J

发布时间:2017-05-16 11:17:39

|

2526人浏览过

|

来源于php中文网

原创

微信支付已经成为生活中必不可少的付款方式,本篇文章主要介绍了java微信支付之公众号支付、扫码支付,有需要的小伙伴可以了解一下。

微信支付现在已经变得越来越流行了,随之也出现了很多以可以快速接入微信支付为噱头的产品,不过方便之余也使得我们做东西慢慢依赖第三方,丧失了独立思考的能力,这次打算分享下我之前开发过的微信支付。

一 、H5公众号支付

要点:正确获取openId以及统一下单接口,正确处理支付结果通知,正确配置支付授权目录

H5的支付方式是使用较为广泛的方式,这种支付方式主要用于微信内自定义菜单的网页,依赖手机上安装的微信客户端,高版本的微信才支持微信支付,下面按我的流程注意说明

立即学习Java免费学习笔记(深入)”;

1  编写用于支付的页面,由于是测试用就写的简单了点

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
 
 
 
  
  
  
 微信支付样例 
  
  
  
 
  
 
  
 
订单号:


订单号:

2  编写一个servlet用于通过Oauth获取code

package com.debug.weixin.servlet; 
 
import java.io.IOException; 
import java.io.PrintWriter; 
 
import javax.servlet.RequestDispatcher; 
import javax.servlet.ServletException; 
import javax.servlet.http.HttpServlet; 
import javax.servlet.http.HttpServletRequest; 
import javax.servlet.http.HttpServletResponse; 
 
import com.debug.weixin.util.CommonUtil; 
import com.debug.weixin.util.ServerConfig; 
public class OauthServlet extends HttpServlet { 
 
 public void doGet(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
 
  this.doPost(request, response); 
 } 
 
 public void doPost(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
 
   String orderNo=request.getParameter("orderNo"); 
   //调用微信Oauth2.0获取openid 
   String redirectURL=ServerConfig.SERVERDOMAIN+"/BasicWeixin/payServletForH5?orderNo="+orderNo; 
   String redirectURI=""; 
   try { 
    redirectURI=CommonUtil.initOpenId(redirectURL); 
   } catch (Exception e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
   } 
   //System.out.println(redirectURI); 
   //RequestDispatcher dis= request.getRequestDispatcher(redirectURI); 
   //dis.forward(request, response); 
   response.sendRedirect(redirectURI); 
 } 
}

3 获取到code后,通过REDIRECTURI获取openId,调用统一下单接口

package com.debug.weixin.servlet; 
 
import java.io.IOException; 
import java.io.PrintWriter; 
import java.util.SortedMap; 
import java.util.TreeMap; 
 
import javax.servlet.RequestDispatcher; 
import javax.servlet.ServletException; 
import javax.servlet.http.HttpServlet; 
import javax.servlet.http.HttpServletRequest; 
import javax.servlet.http.HttpServletResponse; 
 
import com.debug.weixin.pojo.WeixinOauth2Token; 
import com.debug.weixin.pojo.WeixinQRCode; 
import com.debug.weixin.util.AdvancedUtil; 
import com.debug.weixin.util.CommonUtil; 
import com.debug.weixin.util.ConfigUtil; 
import com.debug.weixin.util.PayCommonUtil; 
 
public class PayServletForH5 extends HttpServlet { 
 
  
 public void doGet(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
 
  this.doPost(request, response); 
 } 
 
 public void doPost(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
   String orderNo=request.getParameter("orderNo"); 
   String code=request.getParameter("code"); 
   
   //获取AccessToken 
   
   WeixinOauth2Token token=AdvancedUtil.getOauth2AccessToken(ConfigUtil.APPID, ConfigUtil.APP_SECRECT, code); 
   
   String openId=token.getOpenId(); 
   
   //调用微信统一支付接口 
   SortedMap parameters = new TreeMap(); 
  parameters.put("appid", ConfigUtil.APPID); 
 
  parameters.put("mch_id", ConfigUtil.MCH_ID); 
  parameters.put("device_info", "1000"); 
  parameters.put("body", "我的测试订单"); 
  parameters.put("nonce_str", PayCommonUtil.CreateNoncestr()); 
   
    
  parameters.put("out_trade_no", orderNo); 
  //parameters.put("total_fee", String.valueOf(total)); 
  parameters.put("total_fee", "1"); 
  parameters.put("spbill_create_ip", request.getRemoteAddr()); 
  parameters.put("notify_url", ConfigUtil.NOTIFY_URL); 
  parameters.put("trade_type", "JSAPI"); 
  parameters.put("openid", openId); 
 
  String sign = PayCommonUtil.createSign("UTF-8", parameters); 
  parameters.put("sign", sign); 
 
  String requestXML = PayCommonUtil.getRequestXml(parameters); 
 
  String result = CommonUtil.httpsRequestForStr(ConfigUtil.UNIFIED_ORDER_URL,"POST", requestXML); 
  System.out.println("----------------------------------"); 
  System.out.println(result); 
  System.out.println("----------------------------------"); 
   
  request.setAttribute("orderNo", orderNo); 
  request.setAttribute("totalPrice", "0.01"); 
  String payJSON=""; 
  try { 
   payJSON=CommonUtil.getH5PayStr(result,request); 
    
  } catch (Exception e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  //System.out.println(payJSON); 
  request.setAttribute("unifiedOrder",payJSON); 
   
  RequestDispatcher dis= request.getRequestDispatcher("h5Pay.jsp"); 
  dis.forward(request, response); 
 } 
}

调用微信统一下单接口,需要注意签名算法,只有签名计算正确才能顺利支付

public static String getH5PayStr(String result,HttpServletRequest request) throws Exception{ 
   
   Map map = XMLUtil.doXMLParse(result); 
    
    
    SortedMap params = new TreeMap(); 
   params.put("appId", ConfigUtil.APPID); 
   params.put("timeStamp", Long.toString(new Date().getTime())); 
   params.put("nonceStr", PayCommonUtil.CreateNoncestr()); 
   params.put("package", "prepay_id="+map.get("prepay_id")); 
   params.put("signType", ConfigUtil.SIGN_TYPE); 
   String paySign = PayCommonUtil.createSign("UTF-8", params); 
   
   params.put("paySign", paySign);  //paySign的生成规则和Sign的生成规则一致 
   
   String json = JSONObject.fromObject(params).toString(); 
   
   return json; 
 }

 4 编写最终的支付界面调起微信H5支付

 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
 
 
 
  
  
  
 微信H5支付 
  
  
   
  
 
  
   
  

5 处理微信支付结果通知

package com.debug.weixin.servlet; 
 
import java.io.ByteArrayOutputStream; 
import java.io.IOException; 
import java.io.InputStream; 
import java.io.PrintWriter; 
import java.util.Map; 
 
import javax.servlet.ServletException; 
import javax.servlet.http.HttpServlet; 
import javax.servlet.http.HttpServletRequest; 
import javax.servlet.http.HttpServletResponse; 
 
import org.jdom.JDOMException; 
 
import com.debug.weixin.util.PayCommonUtil; 
import com.debug.weixin.util.XMLUtil; 
 
public class PayHandlerServlet extends HttpServlet { 
 
  
 public void doGet(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
   this.doPost(request, response); 
 } 
 
  
 public void doPost(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
 
  InputStream inStream = request.getInputStream(); 
  ByteArrayOutputStream outSteam = new ByteArrayOutputStream(); 
  byte[] buffer = new byte[1024]; 
  int len = 0; 
  while ((len = inStream.read(buffer)) != -1) { 
   outSteam.write(buffer, 0, len); 
  } 
   
  outSteam.close(); 
  inStream.close(); 
  String result = new String(outSteam.toByteArray(),"utf-8");//获取微信调用我们notify_url的返回信息 
  Map map=null; 
  try { 
   map = XMLUtil.doXMLParse(result); 
  } catch (JDOMException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  for(Object keyValue : map.keySet()){ 
   System.out.println(keyValue+"="+map.get(keyValue)); 
  } 
  if (map.get("result_code").toString().equalsIgnoreCase("SUCCESS")) { 
    
   //对订单进行业务操作 
   System.out.println("-------------OK"); 
   response.getWriter().write(PayCommonUtil.setXML("SUCCESS", "")); //告诉微信服务器,我收到信息了,不要在调用回调action了 
    
  } 
 } 
}

对于上面的代码,有很多都是参考blog.csdn.net/u011160656/article/details/41759195,因此这部分的代码就不贴出来了,需要的话看这个博客就知道了。

百家CMS微商城
百家CMS微商城

百家CMS微商城从诞生开始,就坚持着简单实用的原则,基于目前最流行的WEB2.0的架构(php+mysql),拥有成熟、稳定的微电商技术解决方案。基于完整的会员等级制度,完善的微商城购物流程,订单管理、优惠券、搜索、购物车等功能。采用跨平台机制,可同时对接微信公众号平台和支付宝服务窗,兼容微博、手机QQ等平台;丰富的支付方式、支持微信支付、支付宝支付、货到付款、余额支付、网银支付等。并且拥有完整的

下载

二  微信扫码支付(模式一)

要点:必须调用长链接转短链接接口、正确配置扫码支付回调URL

1 根据订单号生成微信支付二维码

下面是几个生成二维码的方法:

package com.debug.weixin.util; 
import com.google.zxing.common.BitMatrix; 
 
 import javax.imageio.ImageIO; 
 import java.io.File; 
 import java.io.OutputStream; 
 import java.io.IOException; 
 import java.awt.image.BufferedImage; 
 
 
 public final class MatrixToImageWriter { 
 
 private static final int BLACK = 0xFF000000; 
 private static final int WHITE = 0xFFFFFFFF; 
 
 private MatrixToImageWriter() {} 
 
  
 public static BufferedImage toBufferedImage(BitMatrix matrix) { 
  int width = matrix.getWidth(); 
  int height = matrix.getHeight(); 
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); 
  for (int x = 0; x < width; x++) { 
  for (int y = 0; y < height; y++) { 
   image.setRGB(x, y, matrix.get(x, y) ? BLACK : WHITE); 
  } 
  } 
  return image; 
 } 
  
 public static void writeToFile(BitMatrix matrix, String format, File file) 
  throws IOException { 
  BufferedImage image = toBufferedImage(matrix); 
  if (!ImageIO.write(image, format, file)) { 
  throw new IOException("Could not write an image of format " + format + " to " + file); 
  } 
 } 
 
  
 public static void writeToStream(BitMatrix matrix, String format, OutputStream stream) 
  throws IOException { 
  BufferedImage image = toBufferedImage(matrix); 
  if (!ImageIO.write(image, format, stream)) { 
  throw new IOException("Could not write an image of format " + format); 
  } 
 } 
 
 }

 这个算是工具类,还有一个就是把二维码显示在界面上的方法,CreateQRCode主要用到代码块:

 public static void createCodeStream(String text,HttpServletResponse response) throws Exception{ 
  
  // response.setContentType("image/jpeg"); 
  ServletOutputStream sos = response.getOutputStream(); 
 
  int width = 500; 
  int height = 500; 
  //二维码的图片格式 
  String format = "jpg"; 
  MultiFormatWriter multiFormatWriter = new MultiFormatWriter(); 
  Map hints = new HashMap(); 
  //内容所使用编码 
  hints.put(EncodeHintType.CHARACTER_SET, "UTF-8"); 
  BitMatrix bitMatrix = multiFormatWriter.encode(text, BarcodeFormat.QR_CODE, width, height, hints); 
  
  
  //生成二维码 
  
  MatrixToImageWriter.writeToStream(bitMatrix, format,sos); 
  
  sos.close(); 
  
  
 }

2 长链接转短链接生成二维码,编写扫码支付回调方法并调用统一下单接口

 package com.debug.weixin.servlet; 
 
import java.io.ByteArrayOutputStream; 
import java.io.IOException; 
import java.io.InputStream; 
import java.io.PrintWriter; 
import java.util.Date; 
import java.util.Map; 
import java.util.SortedMap; 
import java.util.TreeMap; 
 
import javax.servlet.ServletException; 
import javax.servlet.http.HttpServlet; 
import javax.servlet.http.HttpServletRequest; 
import javax.servlet.http.HttpServletResponse; 
 
import org.jdom.JDOMException; 
 
import com.debug.weixin.util.CommonUtil; 
import com.debug.weixin.util.ConfigUtil; 
import com.debug.weixin.util.CreateQRCode; 
import com.debug.weixin.util.PayCommonUtil; 
import com.debug.weixin.util.XMLUtil; 
import com.mongodb.DBObject; 
 
public class ScanCodePayServlet extends HttpServlet { 
 
  
 public void doGet(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
  this.doPost(request, response); 
   
 } 
 
  
 public void doPost(HttpServletRequest request, HttpServletResponse response) 
   throws ServletException, IOException { 
   
  String flag=request.getParameter("flag"); 
  if("createCode".equals(flag)){ 
   createPayCode(request,response); 
  }else{ 
   try { 
    wxScanCodeHandler(request,response); 
   } catch (Exception e) { 
    // TODO Auto-generated catch block 
    e.printStackTrace(); 
   } 
  } 
   
   
 } 
  
 public void createPayCode(HttpServletRequest request,HttpServletResponse response){ 
   
  String orderNo=request.getParameter("orderNo"); 
   
  SortedMap paras = new TreeMap(); 
  paras.put("appid", ConfigUtil.APPID); 
  paras.put("mch_id", ConfigUtil.MCH_ID); 
  paras.put("time_stamp", Long.toString(new Date().getTime())); 
  paras.put("nonce_str", PayCommonUtil.CreateNoncestr()); 
  paras.put("product_id", orderNo);//商品号要唯一 
  String sign = PayCommonUtil.createSign("UTF-8", paras); 
  paras.put("sign", sign); 
   
  String url = "weixin://wxpay/bizpayurl?sign=SIGN&appid=APPID&mch_id=MCHID&product_id=PRODUCTID&time_stamp=TIMESTAMP&nonce_str=NOCESTR"; 
  String nativeUrl = url.replace("SIGN", sign).replace("APPID", ConfigUtil.APPID).replace("MCHID", ConfigUtil.MCH_ID).replace("PRODUCTID", (String)paras.get("product_id")).replace("TIMESTAMP", (String)paras.get("time_stamp")).replace("NOCESTR", (String)paras.get("nonce_str")); 
   
 
 
   SortedMap parameters = new TreeMap(); 
   parameters.put("appid", ConfigUtil.APPID); 
   parameters.put("mch_id", ConfigUtil.MCH_ID); 
   parameters.put("nonce_str", PayCommonUtil.CreateNoncestr()); 
   parameters.put("long_url", CommonUtil.urlEncodeUTF8(nativeUrl)); 
   String sign2 = PayCommonUtil.createSign("UTF-8", parameters); 
   parameters.put("sign", sign2); 
   String requestXML = PayCommonUtil.getRequestXml(parameters); 
   String result =CommonUtil.httpsRequestForStr(ConfigUtil.SHORT_URL, "POST", requestXML); 
   
   Map map=null; 
  try { 
   map = XMLUtil.doXMLParse(result); 
  } catch (JDOMException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } catch (IOException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
   String returnCode = map.get("return_code"); 
   String resultCode = map.get("result_code"); 
   
   if(returnCode.equalsIgnoreCase("SUCCESS")&&resultCode.equalsIgnoreCase("SUCCESS")){ 
    
    String shortUrl = map.get("short_url"); 
    //TODO 拿到shortUrl,写代码生成二维码 
    System.out.println("shortUrl="+shortUrl); 
    try { 
    CreateQRCode.createCodeStream(shortUrl,response); 
    } catch (Exception e) { 
    // TODO Auto-generated catch block 
    e.printStackTrace(); 
    } 
  } 
 } 
  
  
 public void wxScanCodeHandler(HttpServletRequest request,HttpServletResponse response) throws Exception { 
  InputStream inStream = request.getInputStream(); 
  ByteArrayOutputStream outSteam = new ByteArrayOutputStream(); 
  byte[] buffer = new byte[1024]; 
  int len = 0; 
  while ((len = inStream.read(buffer)) != -1) { 
   outSteam.write(buffer, 0, len); 
  } 
   
  outSteam.close(); 
  inStream.close(); 
  String result = new String(outSteam.toByteArray(),"utf-8");//获取微信调用我们notify_url的返回信息 
  Map map=null; 
  try { 
   map = XMLUtil.doXMLParse(result); 
  } catch (JDOMException e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  for(Object keyValue : map.keySet()){ 
   System.out.println(keyValue+"="+map.get(keyValue)); 
  } 
  String orderNo=map.get("product_id").toString(); 
   
  //接收到请求参数后调用统一下单接口 
  SortedMap parameters = new TreeMap(); 
  parameters.put("appid", ConfigUtil.APPID); 
 
  parameters.put("mch_id", ConfigUtil.MCH_ID); 
  parameters.put("device_info", "1000"); 
  parameters.put("body", "测试扫码支付订单"); 
  parameters.put("nonce_str", PayCommonUtil.CreateNoncestr()); 
   
    
  parameters.put("out_trade_no", map.get("product_id")); 
  //parameters.put("total_fee", String.valueOf(totalPrice)); 
  parameters.put("total_fee", "1"); 
  parameters.put("spbill_create_ip", request.getRemoteAddr()); 
  parameters.put("notify_url", ConfigUtil.NOTIFY_URL); 
  parameters.put("trade_type", "NATIVE"); 
  parameters.put("openid", map.get("openid")); 
 
  String sign = PayCommonUtil.createSign("UTF-8", parameters); 
  
  parameters.put("sign", sign); 
 
  String requestXML = PayCommonUtil.getRequestXml(parameters); 
 
  String result2 = CommonUtil.httpsRequestForStr(ConfigUtil.UNIFIED_ORDER_URL,"POST", requestXML); 
   
  System.out.println("-----------------------------统一下单结果---------------------------"); 
  System.out.println(result2); 
  Map mm=null; 
  try { 
   mm=getH5PayMap(result2,request); 
  } catch (Exception e) { 
   // TODO Auto-generated catch block 
   e.printStackTrace(); 
  } 
  //String prepayId=getPrepayId(result2,request); 
  //String returnNoneStr=getReturnNoneStr(result2,request); 
  String prepayId=mm.get("prepay_id"); 
  String returnNoneStr=mm.get("nonce_str");; 
  SortedMap lastSign = new TreeMap(); 
  lastSign.put("return_code", "SUCCESS"); 
  lastSign.put("appid", ConfigUtil.APPID); 
  lastSign.put("mch_id", ConfigUtil.MCH_ID); 
  lastSign.put("nonce_str", returnNoneStr); 
  lastSign.put("prepay_id", prepayId); 
  lastSign.put("result_code", "SUCCESS"); 
  lastSign.put("key", ConfigUtil.API_KEY); 
   
   
  String lastSignpara = PayCommonUtil.createSign("UTF-8", lastSign); 
   
   
  StringBuffer buf=new StringBuffer(); 
  buf.append(""); 
  buf.append("SUCCESS"); 
  buf.append(""+ConfigUtil.APPID+""); 
  buf.append(""+ConfigUtil.MCH_ID+""); 
  buf.append(""+returnNoneStr+""); 
  buf.append("
"+prepayId+""); 
  buf.append("SUCCESS"); 
  buf.append(""+lastSignpara+""); 
  buf.append(""); 
   
  response.getWriter().print(buf.toString()); 
 } 
  
 public Map getH5PayMap(String result,HttpServletRequest request) throws Exception{ 
   
   Map map = XMLUtil.doXMLParse(result); 
   return map; 
 } 
 
}

最终看下公众号支付和扫码支付的微信配置:

【相关推荐】

1. 特别推荐“php程序员工具箱”V0.1版本下载

2. 微信小程序完整源码下载

3. 微信小程序demo:仿网易云音乐

相关文章

微信app下载
微信app下载

微信是一款手机通信软件,支持通过手机网络发送语音短信、视频、图片和文字。微信可以单聊及群聊,还能根据地理位置找到附近的人,带给大家全新的移动沟通体验,有需要的小伙伴快来保存下载体验吧!

下载

相关标签:

本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热门AI工具

更多
DeepSeek
DeepSeek

幻方量化公司旗下的开源大模型平台

豆包大模型
豆包大模型

字节跳动自主研发的一系列大型语言模型

通义千问
通义千问

阿里巴巴推出的全能AI助手

腾讯元宝
腾讯元宝

腾讯混元平台推出的AI助手

文心一言
文心一言

文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。

讯飞写作
讯飞写作

基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿

即梦AI
即梦AI

一站式AI创作平台,免费AI图片和视频生成。

ChatGPT
ChatGPT

最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。

相关专题

更多
拼多多赚钱的5种方法 拼多多赚钱的5种方法
拼多多赚钱的5种方法 拼多多赚钱的5种方法

在拼多多上赚钱主要可以通过无货源模式一件代发、精细化运营特色店铺、参与官方高流量活动、利用拼团机制社交裂变,以及成为多多进宝推广员这5种方法实现。核心策略在于通过低成本、高效率的供应链管理与营销,利用平台社交电商红利实现盈利。

25

2026.01.26

edge浏览器怎样设置主页 edge浏览器自定义设置教程
edge浏览器怎样设置主页 edge浏览器自定义设置教程

在Edge浏览器中设置主页,请依次点击右上角“...”图标 > 设置 > 开始、主页和新建标签页。在“Microsoft Edge 启动时”选择“打开以下页面”,点击“添加新页面”并输入网址。若要使用主页按钮,需在“外观”设置中开启“显示主页按钮”并设定网址。

6

2026.01.26

苹果官方查询网站 苹果手机正品激活查询入口
苹果官方查询网站 苹果手机正品激活查询入口

苹果官方查询网站主要通过 checkcoverage.apple.com/cn/zh/ 进行,可用于查询序列号(SN)对应的保修状态、激活日期及技术支持服务。此外,查找丢失设备请使用 iCloud.com/find,购买信息与物流可访问 Apple (中国大陆) 订单状态页面。

24

2026.01.26

npd人格什么意思 npd人格有什么特征
npd人格什么意思 npd人格有什么特征

NPD(Narcissistic Personality Disorder)即自恋型人格障碍,是一种心理健康问题,特点是极度夸大自我重要性、需要过度赞美与关注,同时极度缺乏共情能力,背后常掩藏着低自尊和不安全感,影响人际关系、工作和生活,通常在青少年时期开始显现,需由专业人士诊断。

3

2026.01.26

windows安全中心怎么关闭 windows安全中心怎么执行操作
windows安全中心怎么关闭 windows安全中心怎么执行操作

关闭Windows安全中心(Windows Defender)可通过系统设置暂时关闭,或使用组策略/注册表永久关闭。最简单的方法是:进入设置 > 隐私和安全性 > Windows安全中心 > 病毒和威胁防护 > 管理设置,将实时保护等选项关闭。

5

2026.01.26

2026年春运抢票攻略大全 春运抢票攻略教你三招手【技巧】
2026年春运抢票攻略大全 春运抢票攻略教你三招手【技巧】

铁路12306提供起售时间查询、起售提醒、购票预填、候补购票及误购限时免费退票五项服务,并强调官方渠道唯一性与信息安全。

31

2026.01.26

个人所得税税率表2026 个人所得税率最新税率表
个人所得税税率表2026 个人所得税率最新税率表

以工资薪金所得为例,应纳税额 = 应纳税所得额 × 税率 - 速算扣除数。应纳税所得额 = 月度收入 - 5000 元 - 专项扣除 - 专项附加扣除 - 依法确定的其他扣除。假设某员工月工资 10000 元,专项扣除 1000 元,专项附加扣除 2000 元,当月应纳税所得额为 10000 - 5000 - 1000 - 2000 = 2000 元,对应税率为 3%,速算扣除数为 0,则当月应纳税额为 2000×3% = 60 元。

11

2026.01.26

oppo云服务官网登录入口 oppo云服务登录手机版
oppo云服务官网登录入口 oppo云服务登录手机版

oppo云服务https://cloud.oppo.com/可以在云端安全存储您的照片、视频、联系人、便签等重要数据。当您的手机数据意外丢失或者需要更换手机时,可以随时将这些存储在云端的数据快速恢复到手机中。

32

2026.01.26

抖币充值官方网站 抖币性价比充值链接地址
抖币充值官方网站 抖币性价比充值链接地址

网页端充值步骤:打开浏览器,输入https://www.douyin.com,登录账号;点击右上角头像,选择“钱包”;进入“充值中心”,操作和APP端一致。注意:切勿通过第三方链接、二维码充值,谨防受骗

6

2026.01.26

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
Kotlin 教程
Kotlin 教程

共23课时 | 2.9万人学习

C# 教程
C# 教程

共94课时 | 7.6万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号