摘要: # 通过 composer 安装 workerman "workerman/workerman": "^4.1", "workerman/gatewayclient": "^3.0", "workerman/gateway-worker": "^3.1", # api 新建文件 workerman 阅读全文
posted @ 2024-04-07 17:34 丶Gang 阅读(234) 评论(0) 推荐(0)
摘要: vivo文档:https://open-ad.vivo.com.cn/doc/index?id=217 public function vivo(){ $accessToken = $this->request->param('accessToken'); $srcId = $this->reque 阅读全文
posted @ 2024-02-29 19:08 丶Gang 阅读(82) 评论(0) 推荐(0)
摘要: 1.引入unipush包 composer require getuilaboratory/getui-pushapi-php-client-v2 如果报错 composer require getuilaboratory/getui-pushapi-php-client-v2 dev-master 阅读全文
posted @ 2024-02-26 18:10 丶Gang 阅读(212) 评论(0) 推荐(0)
摘要: 1.登录公众号,新建消息推送模版 2.打开微信官方文档 ->找到模版消息接口 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html 3. 代码 <?php 阅读全文
posted @ 2023-10-30 09:14 丶Gang 阅读(419) 评论(0) 推荐(0)
摘要: // 舍去小数三位后的数,四舍五入 BigDecimal a = new BigDecimal("9"); BigDecimal b = new BigDecimal("15"); //舍去小数三位后的数 BigDecimal c = b.divide(a, 3, RoundingMode.HALF 阅读全文
posted @ 2023-04-18 17:26 丶Gang 阅读(1294) 评论(0) 推荐(0)
摘要: String json = "[{"id": "1","name": "zhangsan"}, {"id": "2","name": "lisi"}, {"id": "3","name": "wangwu"}]"; //json字符串 转 json 数组 JSONArray jsonarrr = J 阅读全文
posted @ 2023-04-03 10:43 丶Gang 阅读(156) 评论(0) 推荐(0)
摘要: /** * 将时间戳转换为时间 * @param s 时间戳 * @param t 时间 * @return */ public static String stampToDate(int s,String t){ String res; SimpleDateFormat simpleDateFor 阅读全文
posted @ 2023-03-08 15:16 丶Gang 阅读(350) 评论(0) 推荐(0)
摘要: /** * AES 加密 * @param sSrc * @return * @throws Exception */ public static String Encrypt(String sSrc) throws Exception { if (sSrc == null) { return nu 阅读全文
posted @ 2023-03-08 15:10 丶Gang 阅读(463) 评论(0) 推荐(0)
摘要: <?php header("Content-type:text/html; charset=UTF-8"); /** * Class SendApi */ class SendApi { const API_SEND_URL='http://112.35.1.155:1992/sms/norsubm 阅读全文
posted @ 2023-03-08 14:58 丶Gang 阅读(183) 评论(0) 推荐(0)
摘要: /** * [excelTime description] * @Author:XuXianGang * @Method:excel 转换时间 * @DateTime:2022-06-06T09:36:37+0800 * @param [type] $days [description] * @pa 阅读全文
posted @ 2023-02-24 09:21 丶Gang 阅读(132) 评论(0) 推荐(0)