db.auto_build_record.updateMany(
{
“channel”: {
$in: [
“spinrp_id_ntla10”,
“spinrp_id_ntla9”,
“spinrp_id_ntla8”,
“spinrp_id_ntla7”,
“spinrp_id_ntla6”,
“spinrp_id_ntla5”,
“spinrp_id_ntla4”,
“spinrp_id_ntla3”,
“spinrp_id_ntla2”,
“spinrp_id_ntla1”
]
}
},
[
{
$set: {
apk_url: {
$concat: [
{
s
u
b
s
t
r
:
[
"
substr: ["
substr:["apk_url", 0, {
i
n
d
e
x
O
f
B
y
t
e
s
:
[
"
indexOfBytes: ["
indexOfBytes:["apk_url", “https://download.spinrp2.com/android/spinrp_official.apk”] }] },
“https://download.spinrp2.com”,
{
s
u
b
s
t
r
:
[
"
substr: ["
substr:["apk_url", { $add: [{
i
n
d
e
x
O
f
B
y
t
e
s
:
[
"
indexOfBytes: ["
indexOfBytes:["apk_url", “https://download.spinrp2.com/android/spinrp_official.apk”] }, { $strLenBytes: “https://download.spinrp2.com/android/spinrp_official.apk” }] }, {
s
t
r
L
e
n
B
y
t
e
s
:
"
strLenBytes: "
strLenBytes:"apk_url" }] }
]
}
}
}
]
);
05-05
349
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-11
2453
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-02
5899
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)