File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/Plugins/BotSharp.Plugin.MongoStorage/Repository Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 22using BotSharp . Abstraction . Repositories . Filters ;
33using BotSharp . Abstraction . Users . Enums ;
44using BotSharp . Abstraction . Users . Models ;
5- using MongoDB . Driver ;
6- using System . Globalization ;
75
86namespace BotSharp . Plugin . MongoStorage . Repository ;
97
@@ -24,7 +22,7 @@ public partial class MongoRepository
2422 return null ;
2523 }
2624
27- string phoneSecond = phone . StartsWith ( "+86" ) ? phone . Replace ( "+86" , "" ) : $ "+86{ phone } ";
25+ phoneSecond = phone . StartsWith ( "+86" ) ? phone . Replace ( "+86" , "" ) : $ "+86{ phone } ";
2826
2927 var user = _dc . Users . AsQueryable ( ) . FirstOrDefault ( x => ( x . Phone == phone || x . Phone == phoneSecond ) && x . Type != UserType . Affiliate
3028 && ( x . RegionCode == regionCode || string . IsNullOrWhiteSpace ( x . RegionCode ) )
You can’t perform that action at this time.
0 commit comments