where(['user_uid' => $userUid, 'goods_uid' => $goodsUid])->count(); if ($int) { return 1; } else { return 0; } } }