|
@@ -29,7 +29,10 @@ class JLEventController extends CatchController
|
|
$unbind = $request->input('unbind', 0);
|
|
$unbind = $request->input('unbind', 0);
|
|
|
|
|
|
$result = DB::table('jl_event_callback_config as config')
|
|
$result = DB::table('jl_event_callback_config as config')
|
|
- ->leftJoin('promotions', 'promotions.callback_config_id', '=', 'config.id')
|
|
|
|
|
|
+ ->leftJoin('promotions', function($join){
|
|
|
|
+ $join->on('promotions.callback_config_id', '=', 'config.id')
|
|
|
|
+ ->where('promotions.callback_type' , CallbackConst::TYPE_JL_EVENT_20);
|
|
|
|
+ })
|
|
->where([
|
|
->where([
|
|
'user_id' => $this->getLoginUserId(),
|
|
'user_id' => $this->getLoginUserId(),
|
|
])->when($id, function ($query, $id){
|
|
])->when($id, function ($query, $id){
|