Esempio n. 1
0
        private void SetUpdateSupplierCodeParams(string bussdata)
        {
            AliSupplierInfo supplier = JsonConvert.DeserializeObject <AliSupplierInfo>(bussdata);

            Secret    = supplier;
            UrlParams = new Dictionary <string, string>();
            UrlParams.Add("access_token", Secret.TokenKey);
            JObject param = new JObject();

            if (!string.IsNullOrWhiteSpace(supplier.SupplierName))
            {
                param.Add("companyName", supplier.SupplierName);
            }
            if (!string.IsNullOrWhiteSpace(supplier.CreditCode))
            {
                param.Add("creditCode", supplier.CreditCode);
            }
            if (!string.IsNullOrWhiteSpace(supplier.RegNo))
            {
                param.Add("regNo", supplier.RegNo);
            }
            param.Add("outCode", supplier.SupplierCode);
            UrlParams.Add("updateSupplierBuyerParam", JsonConvert.SerializeObject(param));
            FunName = "cn.alibaba.open/caigou.supplier.ocean.updateSupplierOutCode";
        }
Esempio n. 2
0
        private void SetGetSupplierParams(string bussdata)
        {
            AliSupplierInfo supplier = JsonConvert.DeserializeObject <AliSupplierInfo>(bussdata);

            Secret    = supplier;
            UrlParams = new Dictionary <string, string>();
            UrlParams.Add("access_token", Secret.TokenKey);
            UrlParams.Add("memberId", supplier.MemberId);
            FunName = "cn.alibaba.open/caigou.api.supplier.getSupplier";
        }