diff --git a/uml/boundle.drawio b/uml/boundle.drawio new file mode 100644 index 00000000..32affb05 --- /dev/null +++ b/uml/boundle.drawio @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/uml/marketLogin.puml b/uml/marketLogin.puml new file mode 100644 index 00000000..faf6b111 --- /dev/null +++ b/uml/marketLogin.puml @@ -0,0 +1,20 @@ +@startuml +'https://plantuml.com/sequence-diagram + +autonumber + +Client -> Web3: bc connect +Web3 --> Client: return chainId->net_id, account +Client -> Server: getNonce{account,net_id} +Server --> Client: return Nonce{nonce} + +Client -> Server: auth{account, nonce, signature, tips} +Server --> Client: return {token} + +Client -> Server: sellMyNft{account, token, nft_token, s_price, payment_token_address, nonce, signature, net_id} +Server --> Client: return ok + +Client -> Server: buyNft{account, token, nft_token, payment_token_address, nonce, signature, net_id} +Server --> Client: return ok + +@enduml \ No newline at end of file diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 5b5d3112..f151aae3 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -558,7 +558,10 @@ class MarketController extends BaseController { $rows = SqlHelper::ormSelect( $conn, - 't_market_store' + 't_market_store', + array( + 'token_type' => $type + ) ); $total = count($rows);