my.MQCheckMerchantTermAndCondition

Description: Check if the user has agreed to the terms and agreements

Sample Code

copy
my.call('MQCheckMerchantTermAndCondition').then((res)=>{
  my.alert({content: res})
})

Parameters

N/A

Success Callback Function

Name

Type

Required

Description

success

Bool

true

Is the JSAPI call successful

code

Int

true

0: The user accepts the T&C protocol,

-1: Failed,

-99: User cancellation

Other codes, error returned based on API interface

message

String

false

error message