This commit is contained in:
parent
978aca61cf
commit
b8d14ec960
@ -116,4 +116,11 @@ $ docker compose up -d
|
|||||||
```sh
|
```sh
|
||||||
# oauth(button)
|
# oauth(button)
|
||||||
[yui]ai.syui.card.verify -> [user]ai.syui.card
|
[yui]ai.syui.card.verify -> [user]ai.syui.card
|
||||||
|
|
||||||
|
[yui]
|
||||||
|
$ ./target/debug/ai card-verify -i 0 -p 0 -r 0 -h syui.ai -d did:plc:uqzpqmrjnptsxezjx4xuh2mn
|
||||||
|
{"uri":"at://did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.card.verify/3lagpvhppmd2q"}
|
||||||
|
|
||||||
|
[user]
|
||||||
|
$ ./target/debug/ai card -i 0 -p 0 -r 0 -v at://did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.card.verify/3lagpvhppmd2q
|
||||||
```
|
```
|
||||||
|
@ -41,6 +41,12 @@
|
|||||||
"maximum": 7,
|
"maximum": 7,
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
|
"mode":{
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 7,
|
||||||
|
"default": 0
|
||||||
|
},
|
||||||
"hp":{
|
"hp":{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"maximum": 255,
|
"maximum": 255,
|
||||||
|
@ -578,6 +578,8 @@ async fn c_card_verify(c: &Context) -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
let rare = c.string_flag("rare").unwrap_or_else(|_| "normal".to_string());
|
let rare = c.string_flag("rare").unwrap_or_else(|_| "normal".to_string());
|
||||||
let user_handle = c.string_flag("handle").unwrap_or_else(|_| "syui.ai".to_string());
|
let user_handle = c.string_flag("handle").unwrap_or_else(|_| "syui.ai".to_string());
|
||||||
let user_did = c.string_flag("did").unwrap_or_else(|_| "did:plc:uqzpqmrjnptsxezjx4xuh2mn".to_string());
|
let user_did = c.string_flag("did").unwrap_or_else(|_| "did:plc:uqzpqmrjnptsxezjx4xuh2mn".to_string());
|
||||||
|
|
||||||
|
//match id === 1 let img = "xxx";
|
||||||
let str = post_card_verify::post_request(col, img, id, cp, rank, rare, user_handle, user_did);
|
let str = post_card_verify::post_request(col, img, id, cp, rank, rare, user_handle, user_did);
|
||||||
println!("{}", str.await);
|
println!("{}", str.await);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user