add supply_chain chaincode

parent 8c84d3e5
......@@ -3,8 +3,8 @@
<component name="ChangeListManager">
<list default="true" id="de83b181-e854-4be8-81f5-73a2fdb02762" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/retrospect_chain/restropect_test.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/retrospect_chain/restropect_test.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/retrospect_chain/retrospect.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/retrospect_chain/retrospect.go" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -15,91 +15,149 @@
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor />
<second_editor />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/medical_chain/medical.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="575">
<caret line="399" column="9" lean-forward="true" selection-start-line="399" selection-start-column="9" selection-end-line="399" selection-end-column="9" />
<state relative-caret-position="3276">
<caret line="189" column="14" selection-start-line="189" selection-start-column="14" selection-end-line="189" selection-end-column="14" />
<folding>
<element signature="e#14#170#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/testing/testing.go">
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/retrospect.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="846" selection-start-line="846" selection-end-line="846" />
<state relative-caret-position="10080">
<caret line="567" column="51" selection-start-line="567" selection-start-column="51" selection-end-line="567" selection-end-column="51" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor />
<second_editor />
<entry file="file://$PROJECT_DIR$/src/medical_chain/medical_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="30" column="25" selection-start-line="30" selection-start-column="25" selection-end-line="30" selection-end-column="25" />
<folding>
<element signature="e#14#112#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/builtin/builtin.go">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/restropect_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="664">
<caret line="188" column="5" selection-start-line="188" selection-start-column="5" selection-end-line="188" selection-end-column="5" />
<state relative-caret-position="396">
<caret line="27" column="144" selection-start-line="27" selection-start-column="144" selection-end-line="27" selection-end-column="144" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/fmt/errors.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="448">
<caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" />
<entry file="file://$PROJECT_DIR$/src/medical_chain/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="126">
<caret line="7" selection-start-line="7" selection-end-line="7" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/encoding/json/decode.go">
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="18">
<caret line="1" selection-start-line="1" selection-end-line="7" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/builtin/builtin.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2352">
<caret line="94" column="5" selection-start-line="94" selection-start-column="5" selection-end-line="94" selection-end-column="5" />
<state relative-caret-position="4680">
<caret line="260" column="4" selection-start-line="260" selection-start-column="4" selection-end-line="260" selection-end-column="4" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/leadger.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="159">
<caret line="98" column="130" selection-start-line="98" selection-start-column="130" selection-end-line="98" selection-end-column="130" />
<state relative-caret-position="162">
<caret line="9" selection-start-line="9" selection-end-line="9" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/time/time.go">
<entry file="file:///usr/local/go/src/testing/testing.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="32116">
<caret line="1150" column="14" selection-start-line="1150" selection-start-column="14" selection-end-line="1150" selection-end-column="14" />
<state relative-caret-position="14940">
<caret line="846" selection-start-line="846" selection-end-line="846" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Go File" />
</list>
</option>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>user</find>
<find>stub.GetState</find>
<find>stub.PutState</find>
<find>authorityCheck</find>
<find>GetStateByRangeWithPagination</find>
<find>switch</find>
<find>2006</find>
<find>2006-01-02 15:04:05</find>
<find>alibusi</find>
<find>6</find>
<find>profit</find>
<find>bookmark</find>
<find>CompositeKey</find>
<find>alibusiCompositeKey</find>
<find>Unsupported table name of</find>
<find>fields type not string</find>
<find>null</find>
<find>fields</find>
<find>schema</find>
<find>amob</find>
<find>atype</find>
<find>abail</find>
<find>Deassign</find>
<find>already</find>
<find>warmline</find>
<find>adiscounts</find>
<find>id</find>
<find>regular</find>
<find>float64</find>
<find>alinkman</find>
<find>schemaCache.Get err</find>
<find>Println</find>
</findStrings>
</component>
<component name="GOROOT" path="/usr/local/go" />
......@@ -117,16 +175,41 @@
<option value="$PROJECT_DIR$/github.com/gongxianghui_test/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/github.com/gongxianghui/gongxianghui.go" />
<option value="$PROJECT_DIR$/github.com/gongxianghui_test/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxianghui_test.go" />
<option value="$APPLICATION_CONFIG_DIR$/goland64.vmoptions" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxinghuileadger_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghuicache_test.go" />
<option value="$PROJECT_DIR$/src/github.com/testcc/testcc_cc.go" />
<option value="$PROJECT_DIR$/src/github.com/testcc/testcc.go" />
<option value="$PROJECT_DIR$/src/github.com/testcc/testcc_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_user/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_user/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui2.0_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/storageData.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/dataobject.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/schema.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/leadger.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/retrospect_chain/README.md" />
<option value="$PROJECT_DIR$/src/medical_chain/README.md" />
<option value="$PROJECT_DIR$/src/retrospect_chain/restropect_test.go" />
<option value="$PROJECT_DIR$/src/retrospect_chain/retrospect.go" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="1" />
<option name="y" value="25" />
<option name="width" value="639" />
<option name="height" value="455" />
<option name="x" value="71" />
<option name="y" value="33" />
<option name="width" value="629" />
<option name="height" value="450" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
......@@ -134,6 +217,7 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
......@@ -150,44 +234,39 @@
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="chaincode" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="github.com" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="chaincode" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="github.com" type="462c0819:PsiDirectoryNode" />
<item name="gongxianghui" type="462c0819:PsiDirectoryNode" />
<item name="medical_chain" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="chaincode" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="github.com" type="462c0819:PsiDirectoryNode" />
<item name="gongxianghui_auth" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
<item name="retrospect_chain" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="DefaultGoTemplateProperty" value="Go File" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="go.gopath.indexing.explicitly.defined" value="true" />
<property name="go.import.settings.migrated" value="true" />
<property name="go.sdk.automatically.set" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/retrospect_chain" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="settings.editor.selected.configurable" value="editor.preferences.fonts.default" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src/retrospect_chain" />
<recent name="$PROJECT_DIR$/src/medical_chain" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
......@@ -200,123 +279,84 @@
</list>
</option>
</component>
<component name="RunManager" selected="Go Test.TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth">
<configuration name="TestGXHDataPutAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<component name="RunManager">
<configuration name="TestAddActivityInfo in github.com/hyperledger/chaincode/src/retrospect_chain" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/github.com/gongxianghui_test" />
<working_directory value="$PROJECT_DIR$/src/retrospect_chain" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/github.com/gongxianghui_test" />
<package value="github.com/hyperledger/chaincode/src/retrospect_chain" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHDataPutAuth$" />
<method v="2" />
</configuration>
<configuration name="TestGXHDataPutAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/src/github.com/gongxianghui_auth" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHDataPutAuth$" />
<method v="2" />
</configuration>
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/github.com/gongxianghui_test" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/github.com/gongxianghui_test" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHSchemaAuth$" />
<method v="2" />
</configuration>
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/src/github.com/gongxianghui_auth" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHSchemaAuth$" />
<method v="2" />
</configuration>
<configuration name="TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/src/github.com/gongxianghui_auth" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHSchemaAuthBytable$" />
<pattern value="^TestAddActivityInfo$" />
<method v="2" />
</configuration>
<recent_temporary>
<list>
<item itemvalue="Go Test.TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<item itemvalue="Go Test.TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<item itemvalue="Go Test.TestGXHDataPutAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<item itemvalue="Go Test.TestGXHDataPutAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" />
<item itemvalue="Go Test.TestGXHSchemaAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" />
<item itemvalue="Go Test.TestAddActivityInfo in github.com/hyperledger/chaincode/src/retrospect_chain" />
</list>
</recent_temporary>
</component>
<component name="TestHistory">
<history-entry file="TestGXHDataPutAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.02.29 at 22h 50m 19s.xml">
<configuration name="TestGXHDataPutAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestBackUpCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui2_0 - 2020.04.01 at 16h 41m 47s.xml">
<configuration name="TestBackUpCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui2.0" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 51m 18s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 28m 41s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 54m 15s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 29m 34s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 55m 53s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 29m 59s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 56m 42s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 32m 30s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 58m 06s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 33m 07s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 58m 53s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 34m 49s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 19h 00m 11s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 36m 16s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 19h 02m 07s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 36m 22s.xml">
<configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry>
<history-entry file="TestGXHSchemaAuthBytable_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 19h 03m 06s.xml">
<configuration name="TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" />
<history-entry file="TestAddActivityInfo_in_github_com_hyperledger_chaincode_src_retrospect_chain - 2020.12.03 at 10h 23m 01s.xml">
<configuration name="TestAddActivityInfo in github.com/hyperledger/chaincode/src/retrospect_chain" configurationId="GoTestRunConfiguration" />
</history-entry>
</component>
<component name="TodoView">
<todo-panel id="selected-file">
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="71" y="31" width="2489" height="1569" extended-state="6" />
<frame x="71" y="31" width="2489" height="1279" extended-state="6" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.21948212" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.17673653" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32909605" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.3997175" />
<window_info anchor="bottom" id="Find" order="1" weight="0.3294849" />
<window_info anchor="bottom" id="Run" order="2" weight="0.39786857" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.39875665" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="TODO" order="6" weight="0.32980227" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="8" />
<window_info anchor="bottom" id="Database Changes" order="9" />
<window_info anchor="bottom" id="Statistic" order="10" />
<window_info anchor="bottom" id="Terminal" order="11" weight="0.3119266" />
<window_info active="true" anchor="bottom" id="Terminal" order="11" visible="true" weight="0.29307282" />
<window_info anchor="bottom" id="Event Log" order="12" side_tool="true" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
......@@ -332,112 +372,212 @@
<breakpoint-manager>
<breakpoints>
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go</url>
<line>347</line>
<properties />
<option name="timeStamp" value="1" />
</line-breakpoint>
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go</url>
<line>558</line>
<properties />
<option name="timeStamp" value="2" />
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxianghui.go</url>
<line>155</line>
<option name="timeStamp" value="6" />
</line-breakpoint>
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go</url>
<line>386</line>
<properties />
<option name="timeStamp" value="3" />
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_user/gongxianghui.go</url>
<line>384</line>
<option name="timeStamp" value="9" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/gongxianghui/schema.go" />
<entry file="file://$PROJECT_DIR$/gongxianghui/deposit.go" />
<entry file="file://$PROJECT_DIR$/gongxianghui/gongxianghui_test.go" />
<entry file="file://$PROJECT_DIR$/gongxianghui/gongxianghui.go" />
<entry file="file:///usr/local/go/src/crypto/x509/x509.go">
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/chaincode_event.pb.go" />
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/chaincode_shim.pb.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/handler.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/chaincode.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/lib/cid/interfaces.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/ext/cid/interfaces.go" />
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/proposal.pb.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/endorser/mocks/support.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/endorser/endorser.go">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret line="676" column="4" selection-start-line="676" selection-start-column="4" selection-end-line="676" selection-end-column="4" />
<state relative-caret-position="5886">
<caret line="350" column="57" selection-start-line="350" selection-start-column="57" selection-end-line="350" selection-end-column="57" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/bytes/bytes.go">
<entry file="file://$PROJECT_DIR$/../fabric/core/common/validation/msgvalidation.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3306">
<caret line="178" column="43" selection-start-line="178" selection-start-column="43" selection-end-line="178" selection-end-column="43" />
<state relative-caret-position="1098">
<caret line="73" column="31" selection-start-line="73" selection-start-column="25" selection-end-line="73" selection-end-column="31" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/mockstub.go">
<entry file="file://$PROJECT_DIR$/../fabric/protos/utils/proputils.go" />
<entry file="file://$PROJECT_DIR$/../fabric/protos/common/common.pb.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/common/ccprovider/ccprovider.go">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret line="141" column="1" selection-start-line="141" selection-start-column="1" selection-end-line="141" selection-end-column="1" />
<state relative-caret-position="8802">
<caret line="505" column="5" selection-start-line="505" selection-start-column="5" selection-end-line="505" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/crypto/x509/pkix/pkix.go">
<entry file="file://$PROJECT_DIR$/../fabric/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret line="126" column="18" selection-start-line="126" selection-start-column="18" selection-end-line="126" selection-end-column="18" />
<state relative-caret-position="667">
<caret line="140" column="24" lean-forward="true" selection-start-line="140" selection-start-column="24" selection-end-line="140" selection-end-column="24" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/encoding/asn1/asn1.go">
<entry file="file:///usr/local/go/src/math/big/intconv.go">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret line="220" column="5" selection-start-line="220" selection-start-column="5" selection-end-line="220" selection-end-column="5" />
<state relative-caret-position="612">
<caret line="38" column="14" selection-start-line="38" selection-start-column="14" selection-end-line="38" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/response.go">
<entry file="file:///usr/local/go/src/strings/strings.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="541">
<caret line="34" column="16" selection-start-line="34" selection-start-column="16" selection-end-line="34" selection-end-column="16" />
<state relative-caret-position="5454">
<caret line="307" column="17" selection-start-line="307" selection-start-column="14" selection-end-line="307" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/proposal_response.pb.go">
<entry file="file://$PROJECT_DIR$/../fabric/protos/ledger/queryresult/kv_query_result.pb.go" />
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret line="109" column="5" selection-start-line="109" selection-start-column="5" selection-end-line="109" selection-end-column="5" />
<state relative-caret-position="-159">
<caret line="26" column="33" selection-start-line="26" selection-start-column="32" selection-end-line="26" selection-end-column="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui_auth/gongxianghui_test.go" />
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui/gongxianghui_test.go" />
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui/gongxianghui.go" />
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui_auth/gongxianghui.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/interfaces.go">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxinghuileadger_test.go">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file:///usr/local/go/src/testing/benchmark.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="880">
<caret line="44" column="4" selection-start-line="44" selection-start-column="4" selection-end-line="44" selection-end-column="4" />
<state relative-caret-position="3870">
<caret line="230" selection-start-line="230" selection-end-line="230" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file:///usr/local/go/src/runtime/asm_amd64.s">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="24426">
<caret line="1357" selection-start-line="1357" selection-end-line="1357" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/time/time.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="20646">
<caret line="1150" column="14" selection-start-line="1150" selection-start-column="14" selection-end-line="1150" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/math/big/int.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2358">
<caret line="136" column="14" selection-start-line="136" selection-start-column="14" selection-end-line="136" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3078">
<caret line="176" column="18" selection-start-line="176" selection-start-column="18" selection-end-line="176" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/fmt/errors.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="448">
<state relative-caret-position="288">
<caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/encoding/json/decode.go">
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/mockstub.go" />
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2352">
<caret line="94" column="5" selection-start-line="94" selection-start-column="5" selection-end-line="94" selection-end-column="5" />
<state relative-caret-position="738">
<caret line="48" column="4" selection-start-line="48" selection-start-column="4" selection-end-line="48" selection-end-column="4" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/time/time.go">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="32116">
<caret line="1150" column="14" selection-start-line="1150" selection-start-column="14" selection-end-line="1150" selection-end-column="14" />
<state relative-caret-position="444">
<caret line="331" column="16" selection-start-line="331" selection-start-column="5" selection-end-line="331" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui2.0_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1027">
<caret line="427" selection-start-line="427" selection-end-line="427" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="732">
<caret line="137" column="19" selection-start-line="137" selection-start-column="19" selection-end-line="137" selection-end-column="19" />
<folding>
<element signature="e#14#189#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/reflect/type.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="354">
<caret line="1372" column="28" selection-start-line="1372" selection-start-column="28" selection-end-line="1372" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/runtime/panic.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="214">
<caret line="846" selection-start-line="846" selection-end-line="846" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="5166">
<caret line="301" column="5" selection-start-line="299" selection-start-column="4" selection-end-line="301" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2664">
<caret line="155" column="22" selection-start-line="155" selection-start-column="22" selection-end-line="155" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/interfaces.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/response.go" />
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/proposal_response.pb.go" />
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/schema.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1530">
<caret line="91" column="49" selection-start-line="91" selection-start-column="49" selection-end-line="91" selection-end-column="49" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/dataobject.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2268">
<caret line="130" column="5" selection-start-line="130" selection-start-column="5" selection-end-line="130" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui2.0_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3942">
<caret line="225" column="128" selection-start-line="225" selection-start-column="119" selection-end-line="225" selection-end-column="128" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4194">
<caret line="244" column="21" selection-start-line="244" selection-start-column="21" selection-end-line="244" selection-end-column="21" />
</state>
</provider>
</entry>
......@@ -449,31 +589,78 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/medical_chain/medical.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3276">
<caret line="189" column="14" selection-start-line="189" selection-start-column="14" selection-end-line="189" selection-end-column="14" />
<folding>
<element signature="e#14#170#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/retrospect.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="10080">
<caret line="567" column="51" selection-start-line="567" selection-start-column="51" selection-end-line="567" selection-end-column="51" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/medical_chain/medical_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="30" column="25" selection-start-line="30" selection-start-column="25" selection-end-line="30" selection-end-column="25" />
<folding>
<element signature="e#14#112#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/medical_chain/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="126">
<caret line="7" selection-start-line="7" selection-end-line="7" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="18">
<caret line="1" selection-start-line="1" selection-end-line="7" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/builtin/builtin.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="664">
<caret line="188" column="5" selection-start-line="188" selection-start-column="5" selection-end-line="188" selection-end-column="5" />
<state relative-caret-position="4680">
<caret line="260" column="4" selection-start-line="260" selection-start-column="4" selection-end-line="260" selection-end-column="4" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/testing/testing.go">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/leadger.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="846" selection-start-line="846" selection-end-line="846" />
<state relative-caret-position="162">
<caret line="9" selection-start-line="9" selection-end-line="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go">
<entry file="file:///usr/local/go/src/testing/testing.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="159">
<caret line="98" column="130" selection-start-line="98" selection-start-column="130" selection-end-line="98" selection-end-column="130" />
<state relative-caret-position="14940">
<caret line="846" selection-start-line="846" selection-end-line="846" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go">
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/restropect_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="575">
<caret line="399" column="9" lean-forward="true" selection-start-line="399" selection-start-column="9" selection-end-line="399" selection-end-column="9" />
<state relative-caret-position="396">
<caret line="27" column="144" selection-start-line="27" selection-start-column="144" selection-end-line="27" selection-end-column="144" />
</state>
</provider>
</entry>
......
bean @ 0de10c54
Subproject commit 0de10c54a09fe9f5a0e8b43b2936e5c96ac2a4db
......@@ -200,4 +200,11 @@ func TestAddActivityInfo(t *testing.T) {
}else if print{
fmt.Println(string(resSearch.Payload))
}
resSearch1 := stub.MockInvoke("invoke1",[][]byte{[]byte("searchRespectInfo"),[]byte("1102"),[]byte("89")})
if resSearch1.Status != 200{
//testResult = false
t.Error(resSearch1.Message)
}else if print{
fmt.Println(string(resSearch1.Payload))
}
}
\ No newline at end of file
......@@ -78,7 +78,6 @@ type DetectionInfo struct {
Contacts string `json:"contacts"` //联系人
ContactPhone string `json:"contactPhone"` //联系电话
Status int `json:"status"` //状态
}
/*
......@@ -347,7 +346,6 @@ type SalesInfo struct {
PrincipalId string `json:"principalId"` //负责人ID
Principal string `json:"principal"` //负责人
CommissionRatio float32 `json:"commissionRatio"` //返佣比例
}
/*
......@@ -561,7 +559,7 @@ func AddCompanyInfo(args []string, stub shim.ChaincodeStubInterface) pb.Response
comInfo := &CompanyInfo{}
err := json.Unmarshal([]byte(args[0]), comInfo)
if err != nil {
return shim.Error(fmt.Sprintf("Unmarshal CompanyInfo fail,err %s ", err))
return shim.Error(fmt.Sprintf("Unmarshal CompanyInfo fail,err %s ,info is %s", err,args[0]))
}
if comInfo.Cid == " " || len(comInfo.Cid) == 0 {
return shim.Error("company info cid can not is null")
......@@ -1057,18 +1055,26 @@ func SearchRespectInfo(args []string, stub shim.ChaincodeStubInterface) pb.Respo
return shim.Error("create respect show composite key err: " + err.Error())
}
showByte, err := getStateByte(showKey, stub)
qr := &SearchQrCode{}
if showByte != nil{
return shim.Success(showByte)
}
qrcode,err := getQrcode(args,stub)
if err!=nil{
return shim.Error(err.Error())
}
searchShow,err := extractRespectShowInfo(qrcode,stub)
if err != nil{
return shim.Error("extract RespectShow info err: " +err.Error())
err = json.Unmarshal(showByte,qr)
if err !=nil{
return shim.Error(err.Error())
}
qr.Count+=1
}else{
qrcode,err := getQrcode(args,stub)
if err!=nil{
return shim.Error(err.Error())
}
qr,err = extractRespectShowInfo(qrcode,stub)
if err != nil{
return shim.Error("extract RespectShow info err: " +err.Error())
}
}
valueByte, err := json.Marshal(searchShow)
valueByte, err := json.Marshal(qr)
if err != nil {
return shim.Error(fmt.Sprintf("json marshal data fail,err: %s", err))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment