|
@@ -116,9 +116,11 @@ class PromotionController extends CatchController
|
|
|
'not_first_charge_template_id' => 'required',
|
|
|
]);
|
|
|
$now = date('Y-m-d H:i:s');
|
|
|
+ $currentUser = $this->getCurrentUser();
|
|
|
DB::table('promotions')
|
|
|
->insert([
|
|
|
- 'uid' => $this->getLoginUserId(),
|
|
|
+ 'uid' => $currentUser->id,
|
|
|
+ 'puid' => $currentUser->pid,
|
|
|
'miniprogram_id' => $request->input('miniprogram_id'),
|
|
|
'name' => $request->input('name'),
|
|
|
'video_id' => $request->input('video_id'),
|