...
|
...
|
@@ -91,6 +91,11 @@ class GoodsdetailsController extends WeChatBaseController{ |
|
|
public function goodsdetails_go_pay(){
|
|
|
|
|
|
$uid = cmf_get_current_user_id();
|
|
|
$my_user = Db::name('my_user') -> where('uid',$uid) -> find();
|
|
|
if($my_user['status'] == 2){
|
|
|
$ret['type'] = 20;
|
|
|
return json_encode($ret);
|
|
|
}
|
|
|
$goods_id = $_POST['id'];
|
|
|
$data[] = Db::name('goods') -> where('id',$goods_id) -> find();
|
|
|
$data[0]['book_num'] = 1;
|
...
|
...
|
|