Commit 277efe9f by haojie

1

parent 59cb9053
......@@ -142,8 +142,10 @@ public function useBuy(Request $request)
*/
public function usePayCheck(Request $request)
{
# 提交redis
$hash = $request->input('hash', null);
if (empty($hash)) {
return $this->error('缺少数据', 400, 400);
}
# 获取状态
$item = UserWallet::query()->where('hash', $hash)->first(['status']);
if ($item->status == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment