Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要确保记录的值在读取时被锁定(以验证是否有一定数量的信用可用),然后我需要更新该记录(同时仍被锁定)以扣除可用信用的数量。有没有最好的方法(或任何方法)通过 Magento 本身来做到这一点?