Giter VIP home page Giter VIP logo

e-commerce's People

Contributors

heinegyo avatar tina-wuuuuu avatar tzutzu858 avatar

Stargazers

 avatar

Watchers

 avatar

e-commerce's Issues

註冊時的 bug

狀況描述 :

確認是新帳號註冊完,在前端顯示 ID已經有人使用,請重新輸入! ,資料庫那邊也確認有寫入新會員資料,但是卻是跑 catch (ServiceException e)

try {
       // 註冊成功
        customerService.register(customer);
        ok.add("註冊成功!");
        request.setAttribute("ok", ok);
        request.getRequestDispatcher("member.jsp").forward(request, response);
 } catch (ServiceException e) {
        // ID已經被註冊
       errors.add("ID已經有人使用,請重新輸入!");
       request.setAttribute("errors", errors);
       request.getRequestDispatcher("member.jsp").forward(request, response);
}

動作 :

去資料庫清空 Customers 這張 table ,之後便順利執行,但同樣 bug 無法再複製出來 Orz
目前註冊都是正常運作,猜想會不會是滑鼠連按兩下,嘗試過後直接跳 500,資料也沒有寫入,感覺是另一個要解決的 bug。

購物車問題

在購物車增減數量,再點購物車總金額會消失,再增減數量會變Nan
購物車數量為0,也可以結帳
在購物車增減數量,再點購物車商品無法刪除

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.