...
|
...
|
@@ -46,7 +46,6 @@ class HexiaoController extends AdminBaseController{ |
|
|
$code_zuixin = Db::name('coupons_user') -> where('code',$code) -> find();
|
|
|
if($code_zuixin['state'] != 1){
|
|
|
$update = Db::name('coupons_user') -> where('code',$code) -> update(['state' => 1,'time'=>$shijian]);
|
|
|
|
|
|
if($update){
|
|
|
return 1;
|
|
|
}else{
|
...
|
...
|
|