上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
from rest_framework.response import Response from rest_framework.views import APIView from database import models import os from django.http import Js Read More
posted @ 2021-02-01 10:54 PythonNew_Mr.Wang Views(104) Comments(0) Diggs(0)
// 查询附近/搜索关键词 <template> <view> <!--地图容器--> <map id="myMap" :markers="markers" style="width:100%;height:350px;" :longitude="longitude" :latitude="lati Read More
posted @ 2021-01-28 12:34 PythonNew_Mr.Wang Views(802) Comments(0) Diggs(0)
原因:语法不兼容,修改转换成vue的写法 // 设置polyline属性,将路线显示出来,将解压坐标第一个数据作为起点 # 微信小程序写法 that.setData({ latitude: pl[0].latitude, longitude: pl[0].longitude, polyline: [ Read More
posted @ 2021-01-27 12:08 PythonNew_Mr.Wang Views(837) Comments(0) Diggs(0)
几个月没部署,全都忘记了,如果没有前端,只是为了部署接口与后台管理的话,只需要配置ngix里面的反向代理就可以了 注意:不要用IP+端口去访问后台路径,我就是因为这个原因卡了好几个小时访问不到static下的静态文件 反向代理指定下 你的静态文件路径 你的nginx监听的是80端口,接收到请求会反向 Read More
posted @ 2021-01-22 10:48 PythonNew_Mr.Wang Views(187) Comments(0) Diggs(0)
// 首先在对应的pages.json文件中,配置刷新效果 { "path" : "pages/list/list", "style" : { "navigationBarTitleText": "房源列表", "enablePullDownRefresh": true } } // 在method Read More
posted @ 2021-01-19 15:00 PythonNew_Mr.Wang Views(1744) Comments(0) Diggs(0)
JAVA: /* * * 1:定义一个继承Thread的类,里面定义run函数为需要多线程的业务函数 * 2:实例化重写的这个类,执行start方法进行多线程运行 * * 测试Thread中的常用方法: * 1. start():启动当前线程;调用当前线程的run() * 2. run():通常需要 Read More
posted @ 2020-12-29 10:17 PythonNew_Mr.Wang Views(137) Comments(0) Diggs(0)
# 根据第三方支付平台的SKD开发文档进行,只是个示例(但是都差不多) 设置完第三方支付平台的公钥,与转换好的私钥后进行: # 充值通道 class Alipay(APIView): # 返回支付链接 def post(self,request): message = {} try: with tr Read More
posted @ 2020-12-25 15:48 PythonNew_Mr.Wang Views(172) Comments(0) Diggs(0)
原理解释:对于你创建的第三方支付的SKD(不限制于支付宝,微信之类的),一定会有一个回调参数地址给你填入,填入后,在用户支付后会使用第三方支付的服务器请求你创建支付对象时填写的回调路由地址(就是你接收回调的接口),以下代码是某平台的回调函数示例,但是每个平台都是不一样的,PS:一定要在线上部署后才能 Read More
posted @ 2020-12-25 15:41 PythonNew_Mr.Wang Views(333) Comments(0) Diggs(0)
list_a =["a","b","c","d"] for i in list_a: print(list_a[list_a.index(i)]) a b c d # 文字少的博文不允许发布到首页候选区 文字少的博文不允许发布到首页候选区 文字少的博文不允许发布到首页候选区 文字少的博文不允许发布到 Read More
posted @ 2020-12-23 11:38 PythonNew_Mr.Wang Views(95) Comments(0) Diggs(0)
/* * * final :加上后 这个方法会成为最终方法,无法被子类重写 * * abstract : 抽象类 此类不能被实例化 子类实例化时可以调用 * * */ public class FinalWithAbstract { public static void main(String[] Read More
posted @ 2020-12-16 16:29 PythonNew_Mr.Wang Views(96) Comments(0) Diggs(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页