コード例 #1
0
ファイル: connect.php プロジェクト: zxw5775/yuhunclub
 function edit($ctx)
 {
     $id = intval($_GET['id']);
     $m = WxConnect::get($id);
     if (!$m) {
         _throw("ID: {$id} 不存在!");
     }
     if ($_POST) {
         $up = array('prj_subscribe' => intval($_POST['f']['prj_subscribe']), 'wx_subscribe' => intval($_POST['f']['wx_subscribe']));
         $m->update($up);
     }
     $ctx->m = $m;
 }