Pārlūkot izejas kodu

【Mod】代码优化

liuxiangxin 6 mēneši atpakaļ
vecāks
revīzija
b9d254d541

+ 2 - 3
app/Http/Controllers/Admin/Orders.php

@@ -136,7 +136,7 @@ class Orders extends Auth{
 		// 恭喜
 		$shopName				= $orderAddr['contact_shop'] ? $orderAddr['contact_shop'] : $order['custom_name'];
 		// 结果
-		$shareImage				= $this->getShareImage($shopName,$order['custom_uid'],$order['id'],$score);
+		$shareImage				= $this->getShareImage($shopName,$score);
 		// 分配数据
 		$this->assign('empty', '<tr><td colspan="20">~~暂无数据</td></tr>');
 		$this->assign('order', $order);
@@ -539,7 +539,7 @@ class Orders extends Auth{
 	 * 分享图片
 	 * 
 	 */
-	private function getShareImage($shopName,$uid,$orderId,$score=0){
+	private function getShareImage($shopName,$score=0){
 		// 尝试执行
 		try {
 			// 加载图片
@@ -592,7 +592,6 @@ class Orders extends Auth{
 
 			return		$base64;
 		} catch (\Throwable $th) {
-			dd($th);
 			// 返回路径
 			return 			'';
 		}

+ 1 - 1
resources/views/admin/score_clockin/index.blade.php

@@ -18,7 +18,7 @@ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
 						<th>ID</th>
 						<th>打卡天数</th>
 						<th>奖励积分</th>
-						<th>奖励</th>
+						<th>奖励</th>
 						<th>修改时间</th>
 						<th>操作</th>
 					</tr>