|
@@ -4,6 +4,7 @@
|
|
|
namespace logicmodel;
|
|
|
|
|
|
|
|
|
+use app\common\model\Config;
|
|
|
use comservice\GetRedis;
|
|
|
use comservice\Response;
|
|
|
use datamodel\Author;
|
|
@@ -399,7 +400,9 @@ class GoodsLogic
|
|
|
*/
|
|
|
public function apply($userInfo,$id,$pay_type){
|
|
|
if($userInfo['is_auth'] == 0) return Response::bindAuth();
|
|
|
-
|
|
|
+ if(!Config::getValue('wallet_open')){
|
|
|
+ return Response::fail('暂未开放支付');
|
|
|
+ }
|
|
|
if( $this->redis->getItem('goods_order_'.$userInfo['id'])){
|
|
|
return Response::fail('频繁操作');
|
|
|
}
|