$code, 'msg'=>$msg, 'data'=>$data ],JSON_UNESCAPED_UNICODE); } //根据shop 来判断是那个店铺 到时间直接选中表就好 function getshopname($shop){ $arr = [ 3=>"alipearlhair", 4=>"westkis" ]; if(!isset($arr[$shop])){ return ""; }else{ return $arr[$shop]; } } function getOrderTable($shop){ $tt = []; $smt = []; $dlz = [3,4]; if(in_array($shop,$tt)){ return "fullordertt"; } if(in_array($shop,$smt)){ return "fullordersmt"; } if(in_array($shop,$dlz)){ return "fullorder"; } return ""; } /** * 对外通信的加密工具类 *$decrypt 要加密内容 */ function toolsjiami($decrypt,$key = "",$iv = ""){ if(empty($key)){ $key = $this->key; } if(empty($iv)){ $iv = $this->iv; } return openssl_encrypt($decrypt,'AES-128-CBC',$key,0,$iv); } /** * 对外通信的解密工具类 *$encrypt 要解密内容 */ function toolsjiemi($encrypt,$key="",$iv=""){ if(empty($key)){ $key = $this->key; } if(empty($iv)){ $iv = $this->iv; } return openssl_decrypt($encrypt,'AES-128-CBC',$key,0,$iv); } }