Browse Source

绑定音箱码补全创客信息和绑定状态

lichunlei 1 year ago
parent
commit
acc96191f3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Areas/Api/Controllers/Main/MerchantQrCodeController.cs

+ 4 - 0
Areas/Api/Controllers/Main/MerchantQrCodeController.cs

@@ -213,6 +213,10 @@ namespace MySystem.Areas.Api.Controllers.v1
                 else
                 {
                     fields = new Dictionary<string, object>();
+                    fields.Add("BindingTime", DateTime.Now);
+                    fields.Add("BuyUserId", merchant.UserId);
+                    fields.Add("UserId", merchant.UserId);
+                    fields.Add("BindingState", 1);
                     fields.Add("BindMerchantId", MerchantId);
                     fields.Add("DeviceKind", "2");
                     PosMachinesService.Edit(fields, machines.Id, false);