app->request->get('id');
app->db->createCommand("select * from goods where id='$id'")->queryOne();
app->redis;
app->request->isPost)
app->request->post();
app->db->createCommand()->insert('goods',$data)->execute();
app->redis;
app->db->createCommand("update goods set counts=counts-1 where id=1 and counts>0")->execute();| 欢迎光临 时时商务社区 (http://bbs.4435.cn/) | Powered by Discuz! X3.2 |