Selaa lähdekoodia

解绑推送处理

lcl 11 kuukautta sitten
vanhempi
commit
bcad245a9b
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      AppStart/Helper/SycnSpServer/SycnSpUnBindService.cs

+ 9 - 0
AppStart/Helper/SycnSpServer/SycnSpUnBindService.cs

@@ -102,6 +102,15 @@ namespace MySystem
                                     spdb.SaveChanges();
                                     spdb.SaveChanges();
                                 }
                                 }
                             }
                             }
+                            else
+                            {
+                                UnBindRecord edit = spdb.UnBindRecord.FirstOrDefault(m => m.Id == Bind.Id);
+                                if (edit != null)
+                                {
+                                    edit.Status = 0;
+                                    spdb.SaveChanges();
+                                }
+                            }
                             tran.Commit();
                             tran.Commit();
                         }
                         }
                         catch (Exception ex)
                         catch (Exception ex)