try session.setCategory(.playAndRecord,options: [.allowBluetooth, .allowBluetoothA2DP, .defaultToSpeaker])
try session.setActive(true)
try session.overrideOutputAudioPort(.none)
这个是激活,默认是扬声器 defaultToSpeaker
2025年09月18日
try session.setCategory(.playAndRecord,options: [.allowBluetooth, .allowBluetoothA2DP, .defaultToSpeaker])
try session.setActive(true)
try session.overrideOutputAudioPort(.none)
这个是激活,默认是扬声器 defaultToSpeaker
2025年09月16日
在碰到多表联查
方法一
不用xml的查询,直接在mapper.java里边的方法通过@Select注解的形式
@Select("select b.id, b.bus_num, b.name, b.create_time, b.end_time, b.staff_id,b.linkman, b.phone, b.status, b.update_time, " + "b.is_speak, b.is_video, b.team_num, b.day_num, b.channel_num, b.product_id, b.menu, b.mobile_type, b.industry_id, " + "b.server, p.name as product_name , s.name as server_name from intercom_business b " + "left join intercom_product p on p.id = b.product_id " + "left join intercom_server s on s.id = b.server") public List<IntercomBusinessVo> selectAllBusinessList(IntercomBusiness intercomBusiness);
2025年09月12日
11:49:29.792 [lettuce-eventExecutorLoop-1-1] INFO i.l.c.p.ConnectionWatchdog - [log,171] - Reconnecting, last destination was /192.168.0.98:6379
11:49:35.527 [lettuce-nioEventLoop-4-1] INFO i.l.c.p.ReconnectionHandler - [lambda$null$3,174] - Reconnected to 192.168.0.98/<unresolved>:6379
2025年09月12日
java11,win10环境。本来是nacos正常的,电脑重新启动后,在重新启动nacos就报错。
# EXCEPTION_ILLEGAL_INSTRUCTION () at pc=, pid=, tid=# # JRE version: Java(TM) SE Runtime Environment (..+) (build ..+-LTS-) # Java VM: Java HotSpot(TM) -Bit Server VM (..+-LTS-, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) # Problematic frame: # C [+] # # No core dump will be written. Minidumps are not enabled by default on client versions of Windows
2025年09月11日
新建日期范围查询 注意这里的Sendtime《注1》 <if test="params.beginSendtime != null and params.beginSendtime != '' and params.endSendtime != null and params.endSendtime != ''"> and sendtime between #{params.beginSendtime} and #{params.endSendtime}</if> 在vue <el-form-item label="发送时间" prop="sendtime"> <el-date-picker v-model="sendTimeDateRange" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> </el-form-item> 其中sendTimeDateRange就是model 需要定义 sendTimeDateRange:[] 在getList let $sendTimeObjs; if (this.sendTimeDateRange.length !== null && this.sendTimeDateRange.length !== 0){ $sendTimeObjs = [new Date(this.sendTimeDateRange[0]).getTime() / 1000,new Date(this.sendTimeDateRange[1]).getTime() / 1000]; } listSms(this.addDateRange(this.queryParams, $sendTimeObjs,"Sendtime")) Sendtime这里的就跟上边《注1》一一对应 其他的文件不需要动
2025年09月08日
[loadNacosData,114] - parse data from Nacos error,dataId:application-dev.yml
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
通过java -jar的形式ruoyi启动服务的时候,出现这个问题。
主要的原因是win下,java的默认编码不是GBK,正常情况下是UTF-8的
2025年08月29日
由于不想在项目中用IOS SDK的形式,因为臃肿以及项目是跟uniapp相结合的,所以打算用原生的形式来上传
至于在上传之前所需要的哪些签名、加密之类的,由uniapp处理之后在给app即可。
OSS上传POST OBject 这里边有个很重要的点,就是file字段必须要放在最后。
2025年02月08日
Powered By Z-BlogPHP 1.7.4
Copyright 粤ICP备2024347557号 Rights Reserved.