|
@@ -58,7 +58,7 @@ class ROITJController extends CatchController
|
|
$sql = $this->_sql($request)->select(
|
|
$sql = $this->_sql($request)->select(
|
|
'day_at', 'user_id', 'puser_id', 'new_user_num', 'new_user_pay_uv',
|
|
'day_at', 'user_id', 'puser_id', 'new_user_num', 'new_user_pay_uv',
|
|
'cost_money', 'new_user_pay_money', 'new_user_vip_pay_money', 'new_user_common_pay_money',
|
|
'cost_money', 'new_user_pay_money', 'new_user_vip_pay_money', 'new_user_common_pay_money',
|
|
- 'new_user_vip_pay_uv', 'new_user_common_pay_uv', 'miniprogram_id', 'promotion_id'
|
|
|
|
|
|
+ 'new_user_vip_pay_uv', 'new_user_common_pay_uv', 'miniprogram_id', 'promotion_id','id'
|
|
);
|
|
);
|
|
$isExport = $request->integer('is_export', false);
|
|
$isExport = $request->integer('is_export', false);
|
|
if ($isExport) {
|
|
if ($isExport) {
|
|
@@ -130,4 +130,22 @@ class ROITJController extends CatchController
|
|
return [];
|
|
return [];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // 更新投放成本
|
|
|
|
+ public function updateCostmoney(Request $request) {
|
|
|
|
+ $this->validate($request, [
|
|
|
|
+ 'id' => 'required',
|
|
|
|
+ 'cost_money' => 'required|min:0|max:1000000000'
|
|
|
|
+ ]);
|
|
|
|
+ DB::table('tj_promotion_day_charge')
|
|
|
|
+ ->where([
|
|
|
|
+ 'id' => $request->input('id'),
|
|
|
|
+ 'user_id' => $this->getLoginUserId(),
|
|
|
|
+ ])->update([
|
|
|
|
+ 'cost_money' => $request->input('cost_money'),
|
|
|
|
+ 'updated_at' => date('Y-m-d H:i:s')
|
|
|
|
+ ]);
|
|
|
|
+
|
|
|
|
+ return 'ok';
|
|
|
|
+ }
|
|
}
|
|
}
|