complete basic functions of server

1. correct incorrect spelling
2. sketch service of gift redeem
3. complete the function of redeem code generation
4. complete gift mapping mechanism