1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\common\model\Config;
- use app\hander\HelpHander;
- class Org extends Base
- {
- public function lists(){
- $lists = model('Org')->getListByRoles($this->userId);
- HelpHander::success($lists);
- }
- public function queryConfig(){
- $orgGrabOrder = getOrgGrabOrder($this->userId,$this->orgId);
- $m = new Config();
- $data = [
- 'orgPhone'=>$m->getConfig('org_phone',$this->orgId),
- 'orgScanQrcode'=>(int)$m->getConfig('org_scan_qrcode',$this->orgId),
- 'orgGrabOrder'=>(int)$orgGrabOrder,
- 'orgSendOrder0'=>(int)$m->getConfig('org_send_order0',$this->orgId),
- 'orgSendOrder1'=>(int)$m->getConfig('org_send_order1',$this->orgId),
- 'orgSendOrder2'=>(int)$m->getConfig('org_send_order2',$this->orgId),
- 'orgSendOrder3'=>(int)$m->getConfig('org_send_order3',$this->orgId),
- 'orgSendOrder4'=>(int)$m->getConfig('org_send_order4',$this->orgId),
- 'orgSign'=>(int)$m->getConfig('org_sign',$this->orgId),
- "twoDispatchOff"=> two_dispatch_off($this->orgId)
- ];
- HelpHander::success($data);
- }
- }
|