|
@@ -7,6 +7,7 @@ use app\admin\model\system\SystemStoreBill;
|
|
|
use app\admin\model\system\SystemStoreExtract;
|
|
|
use app\admin\model\system\SystemStorePoint;
|
|
|
use app\admin\model\system\SystemStoreProductStock;
|
|
|
+use app\admin\model\system\SystemStoreSender;
|
|
|
use app\admin\model\user\UserRecharge;
|
|
|
use app\models\system\SystemStore;
|
|
|
use app\Request;
|
|
@@ -52,6 +53,24 @@ class StoreOrderController
|
|
|
return app('json')->successful('ok', SystemStorePoint::getStoreList($where));
|
|
|
}
|
|
|
|
|
|
+ public function senderList(Request $request)
|
|
|
+ {
|
|
|
+ $uid = $request->uid();
|
|
|
+ $where = UtilService::getMore([
|
|
|
+ ['page', 1],
|
|
|
+ ['limit', 20],
|
|
|
+ ]);
|
|
|
+ $info = SystemStoreStaff::where('uid', $uid)->where('status', 1)->find();
|
|
|
+ if (!$info) {
|
|
|
+ return app('json')->fail('权限不足');
|
|
|
+ }
|
|
|
+// var_dump($info->toArray());
|
|
|
+ $where['store_id'] = $info['store_id'];
|
|
|
+ $where['excel'] = 0;
|
|
|
+// $where['type'] = $info['store_id'];
|
|
|
+ return app('json')->successful('ok', SystemStoreSender::getStoreList($where));
|
|
|
+ }
|
|
|
+
|
|
|
public function pointDetail($id, Request $request)
|
|
|
{
|
|
|
$uid = $request->uid();
|