12345678910111213141516171819202122232425262728293031 |
- <?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(){
- $m = new Config();
- $data = [
- 'orgPhone'=>$m->getConfig('org_phone',$this->orgId),
- 'orgScanQrcode'=>(int)$m->getConfig('org_scan_qrcode',$this->orgId),
- 'orgGrabOrder'=>(int)$m->getConfig('org_grab_order',$this->orgId),
- '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);
- }
- }
|