|
@@ -11,6 +11,7 @@ use app\common\model\MobileInfo;
|
|
|
use app\common\model\MobileOrder;
|
|
|
use app\common\model\MobileOrderNo;
|
|
|
use app\common\model\Payment;
|
|
|
+use app\common\model\SysConfig;
|
|
|
use app\common\service\Jdpay;
|
|
|
use app\common\service\SmsSend;
|
|
|
use think\App;
|
|
@@ -398,4 +399,16 @@ class MobileController extends UserApi
|
|
|
$no->allowField(true)->save($data);
|
|
|
$this->success('');
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 横幅播报
|
|
|
+ * @ApiReturnParams (name=ordered_num,description=已订购人数)
|
|
|
+ * @ApiReturnParams (name=ordered_num,description=已订购人数)
|
|
|
+ */
|
|
|
+ public function ordered_show(){
|
|
|
+ $data=[];
|
|
|
+ $data['ordered_num']=SysConfig::look('mo_ordered_num',0);
|
|
|
+ $data['ordered_list']=MobileOrder::payed()->order('id','desc')->limit(10)
|
|
|
+ ->select();
|
|
|
+ $this->success('',$data);
|
|
|
+ }
|
|
|
}
|