|
|
@@ -169,9 +169,8 @@ class CardController
|
|
|
* @throws \think\db\exception\DbException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
*/
|
|
|
- public function use_card(Request $request,$id)
|
|
|
+ public function use_card(Request $request)
|
|
|
{
|
|
|
- if (!$id) return app('json')->fail('传入id');
|
|
|
$data = UtilService::postMore([
|
|
|
['card'],
|
|
|
['pwd']
|
|
|
@@ -200,7 +199,7 @@ class CardController
|
|
|
{
|
|
|
UserEquity::create([
|
|
|
'uid' => $request->uid(),
|
|
|
- 'user_card_id' => $id,
|
|
|
+ 'user_card_id' => $user_card['id'],
|
|
|
'c_id' => $item['c_id'],
|
|
|
'type' => $item['type'],
|
|
|
'number' => $item['number'],
|