|
@@ -428,7 +428,7 @@ class AppController extends DooController {
|
|
|
$a = file_put_contents(Doo::conf()->SITE_PATH .$virtualPath,$img);
|
|
|
// move_uploaded_file($_FILES['sign']["tmp_name"], Doo::conf()->SITE_PATH .$virtualPath);
|
|
|
if($a){
|
|
|
- $this->profile->setSignPath($this->params['uid'], $virtualPath);
|
|
|
+ $this->profile->setSignPath($_POST['uid'], $virtualPath);
|
|
|
$status = array('status' => TRUE, 'msg' => '');
|
|
|
echo json_encode($status, JSON_UNESCAPED_UNICODE);
|
|
|
die();
|
|
@@ -625,6 +625,22 @@ class AppController extends DooController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /* * ************************************************************
|
|
|
+ * 生成指定长度的随机码。
|
|
|
+ * @param int $length 随机码的长度。
|
|
|
+ * @access public
|
|
|
+ * ************************************************************ */
|
|
|
+
|
|
|
+ function createRandomCode($length)
|
|
|
+ {
|
|
|
+ $randomCode = "";
|
|
|
+ $randomChars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
|
+ for ($i = 0; $i < $length; $i++) {
|
|
|
+ $randomCode .= $randomChars{mt_rand(0, 35)};
|
|
|
+ }
|
|
|
+ return $randomCode;
|
|
|
+ }
|
|
|
+
|
|
|
public function scanValidate(){
|
|
|
if(isset($_POST['app']) && $_POST['app'] == 'jlzfAppScanValidate'){
|
|
|
$uid = $this->__hashids->decode($_POST['user'])[0];
|