12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\index\controller;
- use app\index\model\CabinetModel;
- use app\index\model\BoxModel;
- class Cabinet extends Base{
- /**
- * 检查取件码
- */
- public function check_fcode(){
- $code = input('param.code');
- }
- /**
- * 自提柜向服务器上报
- */
- public function record_store(){
- $order_sn = input('param.order_sn');
- $trunk = input('param.trunk');
- $cabinet = input('param.cabinet');
- $state = input('param.state');
- }
- /**
- * 自提柜向服务器上报用户取走商品。
- */
- public function record_fetch(){
- $trunk = input('param.trunk');
- $cabinet = input('param.cabinet');
- $state = input('param.state');
- }
- /**
- * 自提柜批量生产
- */
- public function add_cabinet(){
- $param = input('param.');
- $validate = new \app\index\validate\CabinetValidate;
- if (!$validate->check($param)) {
- return json(json_error_exception('1007',$validate->getError()));
- }
- $CabinetModel = new CabinetModel();
- $flag = $CabinetModel->insertCabinet($param);
- if($flag['code'] != 1){
- return json(json_error_exception('1006',$flag['msg']));
- }
- json_return(200,[],'success');
- }
- }
|