我昨天得到了1803更新,今天意识到我在Bitvise SSH上出错了.
我有多个VPS,我得到同样的错误.
这是我收到的错误消息:
SSH2会话因错误而终止.原因:组件会话/传输/ kexHandler出错.错误类:流量,代码:ComponentException,消息:异常在组分:视窗CNG(86)与加法:AsymKey:CngAgree:意想不到secretData-> cbStruct.
我在我的项目中使用 vue.js 3、typescript 和 vuex 4。this.$store但是在我的.vue文件上使用时出现此错误
Property '$store' does not exist on type 'CreateComponentPublicInstance<{}, {}, { exchanges: Exchange[]; isValidNodeUrl: boolean; isValidSelectedNetworks: boolean; web3: "" | Web3; privateKey: string; jsonKeystore: string; jsonKeystorePassword: string; ... 24 more ...; botIsRunning: boolean; }, ... 14 more ..., {}>'
Run Code Online (Sandbox Code Playgroud)
vuex.d.ts我根据此文档
添加了内容,但仍然遇到相同的错误https://next.vuex.vuejs.org/guide/typescript-support.html。
import { Store } from "vuex";
import { ComponentCustomProperties } from "vue";
import { State } from "@/interfaces/bot";
declare module "@vue/runtime-core" {
// Declare your own store …Run Code Online (Sandbox Code Playgroud) 我有一个.json要定义的文件.env。我怎么做 ?我的 json 文件在(laravel root folder)/json_google/api_key.json. 我试过了,GOOGLE_SERVICE_ACCOUNT_JSON_LOCATION=/json_google/api_key.json但不起作用..
我正在尝试创建一个作业,该作业将在使用bull queue. 但工作从不拖延,总是紧随其后。这是我当前的代码:
const Queue = require('bull');
const queue = new Queue('send notiffication to main app', 'redis://127.0.0.1:6379');
const sendDepositNotificationToMainAppJob = require('../jobs/sendDepositNotificationToMainApp');
queue.process(new sendDepositNotificationToMainAppJob(depositSuccess));
Run Code Online (Sandbox Code Playgroud)
sendDepositNotificationToMainApp.js
const Queue = require('bull');
const queue = new Queue('send notif to main app', 'redis://127.0.0.1:6379');
class sendDepositNotificationToMainApp {
constructor(depositSuccess){
return handle(depositSuccess);
}
}
const handle = async (depositSuccess) => {
try {
//some function here
}.catch(e){
//if error retry job here
queue.add(new sendDepositNotificationToMainApp(depositSuccess), {delay : 5000})
}
}
module.exports = sendDepositNotificationToMainApp;
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我有两张这样的桌子:-
Tablea
-------
id|Comp_name|
1 |abc |
Tableb
--------
ids|id|Comp_name|
2 |1 |def|
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用这样的查询将这两个表内部连接到一个表中
SELECT * FROM tablea
INNER JOIN tableb ON tablea.id=tableb.id
Run Code Online (Sandbox Code Playgroud)
结果是这样的
id|Comp_name|ids|Comp_name|
1 |abc |2 |def|
Run Code Online (Sandbox Code Playgroud)
。如何将 Comp_name 值分离到 php 中?我尝试了这样的代码但失败了:-
foreach($query->result() as $row){
echo '<tr class="'.$class.'">
<td>
'.$row->Tablea.Comp_name.'
</td>
<td>
'.$row->Tablea.Comp_name.'
</td>
Run Code Online (Sandbox Code Playgroud) 如何将具有多个索引的2个数组连接到1个数组中?我有这样的数组
Array
(
[0] => Array
(
[wd[wd5][amount]] => 1.00
[wd[wd5][address]] => 1BitcoinAddress
[wd[wd5][currency]] => BTC
)
[1] => Array
(
[wd[wd7][amount]] => 1.00
[wd[wd7][address]] => 1BitcoinAddress
[wd[wd7][currency]] => BTC
)
)
Run Code Online (Sandbox Code Playgroud)
我想将该数组转换/更改/合并为完全相同的东西
array(
'wd[wd5][amount]' => 1.00,
'wd[wd5][address]' => '1BitcoinAddress',
'wd[wd5][currency]' => 'BTC',
'wd[wd7][amount]' => 0.0001,
'wd[wd7][address]' => '1BitcoinAddress',
'wd[wd7][currency]' => 'BTC'
);
Run Code Online (Sandbox Code Playgroud)
我怎么做 ?