We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{status: false, code: 400, message: "订单提交失败"}
local.INFO: Call to undefined method Illuminate\Database\Query\Builder::increaseSales()
//6. remove goods store. foreach ($order->getItems() as $item) { $product = $item->getModel(); $product->reduceStock($item->quantity); $product->increaseSales($item->quantity); $product->save(); }
The text was updated successfully, but these errors were encountered:
返回的是一个 QueryBuilder 所以才会这样,开源和商业项目这里都没出过这种异常,具体的自己先排查下,同时我们这里再优化下。
Sorry, something went wrong.
那个好像是这个方法没有写,我直接注释掉了。我这边是做毕设所以无所谓,正式环境增加一个方法内容呗。
No branches or pull requests
{status: false, code: 400, message: "订单提交失败"}
local.INFO: Call to undefined method Illuminate\Database\Query\Builder::increaseSales()
//6. remove goods store. foreach ($order->getItems() as $item) { $product = $item->getModel(); $product->reduceStock($item->quantity); $product->increaseSales($item->quantity); $product->save(); }
The text was updated successfully, but these errors were encountered: