|
|
@ -110,6 +110,31 @@ class MarketingStrategyController extends UserBaseController |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function actionDelete() { |
|
|
|
|
|
|
|
Yii::$app->response->format = Response::FORMAT_JSON; |
|
|
|
|
|
|
|
$request = Yii::$app->request; |
|
|
|
|
|
|
|
$result = array(); |
|
|
|
|
|
|
|
$result['success'] = false; |
|
|
|
|
|
|
|
$result['msg'] = '删除失败'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$id = $request->post('id',0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($id == 0) |
|
|
|
|
|
|
|
return $result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$tichengTypeT = ZhongjiYingxiao::findOne(['id'=>$id]); |
|
|
|
|
|
|
|
if($tichengTypeT) { |
|
|
|
|
|
|
|
$tichengTypeT->is_delete = 1; |
|
|
|
|
|
|
|
$tichengTypeT->save(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$result['success'] = true; |
|
|
|
|
|
|
|
$result['msg'] = '删除成功'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function actionUsers() { |
|
|
|
public function actionUsers() { |
|
|
|
$request = Yii::$app->request; |
|
|
|
$request = Yii::$app->request; |
|
|
|
$id = $request->get('id'); |
|
|
|
$id = $request->get('id'); |
|
|
|